diff --git a/internal/epub/imageprocessor/epub_image_processor_decoder_turbo.go b/internal/epub/imageprocessor/epub_image_processor_decoder_turbo.go index 8fdea77..fd9fa54 100644 --- a/internal/epub/imageprocessor/epub_image_processor_decoder_turbo.go +++ b/internal/epub/imageprocessor/epub_image_processor_decoder_turbo.go @@ -3,7 +3,6 @@ package epubimageprocessor import ( - "fmt" "image" _ "image/jpeg" _ "image/png" @@ -20,10 +19,6 @@ func DecodeImage(name string, f io.ReadCloser) (img image.Image, err error) { switch strings.ToLower(filepath.Ext(name)) { case ".jpeg", ".jpg": img, err = turbojpeg.Decode(f, &turbojpeg.DecoderOptions{}) - if err != nil { - fmt.Println(err) - img, _, err = image.Decode(f) - } default: img, _, err = image.Decode(f) }