bitbank2/JPEGDEC

Failed decode JPEG file saved from MacOS Preview App

Closed this issue · 1 comments

I have resized an image by MacOS Preview App and then save to JPEG file, it cannot decode by JPEGDEC.
240

However, if I use ImageMagick tools convert it again, it can decode:

convert -i 240.jpeg converted.jpeg

converted

Check the return codes :)
Your original converted image uses progressive encoding which is not supported by JPEGDEC. Only baseline Huffman is supported. There are 4 possible encodings (Progressive/Baseline, Huffman/Arithmetic).