go-comic-converter/internal/epub/imageprocessor/epub_image_processor_decoder.go
2023-07-04 09:44:14 +02:00

18 lines
254 B
Go

//go:build !turbo
package epubimageprocessor
import (
"image"
_ "image/jpeg"
_ "image/png"
"io"
_ "golang.org/x/image/webp"
)
func DecodeImage(name string, f io.ReadCloser) (img image.Image, err error) {
img, _, err = image.Decode(f)
return
}