mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 08:12:36 +02:00
18 lines
254 B
Go
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
|
|
}
|