error/jpeg.c/JPEGErrorHandler/318

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
farcot
Posts: 1
Joined: 2013-03-11T03:29:09-07:00
Authentication code: 6789

error/jpeg.c/JPEGErrorHandler/318

Post by farcot »

Hello.
With some images i get:
convert: Sampling factors too large for interleaved scan `file3_conv.jpg' @ error/jpeg.c/JPEGErrorHandler/318.

images are correct and can be opened with various other software.
broken image can be downloaded here: Image
I'm using Version: ImageMagick 6.8.3-9 2013-03-10 Q16
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: error/jpeg.c/JPEGErrorHandler/318

Post by magick »

Try this command:
  • convert 0ba9ee_b39b4b46822c3becc8d851957a51872e.jpg -sampling-factor 2x2 image.jpg
The JPEG standard restricts the max blocks in the MCU to 10, however, Adobe sometimes emits non-compliant JPEG files. We force JPEG-standards compliance with the -sampling-factor option.
Post Reply