Page 1 of 1

Crash when quantizing certain images

Posted: 2011-11-20T14:52:59-07:00
by Reinderien
When dithering certain images, convert.exe crashes. I have tried this with both the 32-bit and 64-bit Windows binaries, version 6.7.3.

Download the 2560x1440 version of http://interfacelift.com/wallpaper/deta ... unset.html . Then run:
convert -colors 10 2124_tuscansunsetmondaymay25th2009_2560x1440.jpg out.png

It seems to be consistent per-image - I have many other backgrounds of that size that all crash the program.

Re: Crash when quantizing certain images

Posted: 2011-11-20T15:24:53-07:00
by fmw42
try reading the image before setting the colors.

The following works just fine for me on IM 6.7.3.7 Q16 Mac OSX Tiger:

convert 02124_tuscansunsetmondaymay25th2009_2560x1440.jpg -colors 10 PNG8:02124_tuscansunsetmondaymay25th2009_2560x1440.png

Re: Crash when quantizing certain images

Posted: 2011-11-20T15:28:43-07:00
by Reinderien
That actually worked. However, I would still consider this a bug...

Re: Crash when quantizing certain images

Posted: 2011-11-20T15:30:01-07:00
by fmw42
No it is not. You are using IM 5 syntax on IM 6. See http://www.imagemagick.org/Usage/basics/#cmdline

Re: Crash when quantizing certain images

Posted: 2011-11-20T15:32:45-07:00
by Reinderien
That's fair enough, but one would think that if it's a syntax problem, the parser would know so and fail gracefully instead of randomly crashing on some input images and not others.

Re: Crash when quantizing certain images

Posted: 2011-11-20T15:47:59-07:00
by fmw42
IM is somewhat conducive to backward compatibility. So your ability to have it work is feasible as far as I know. I don't fully understand how much is backward compatible. So I would say that it is puzzling that it fails on certain images if it works on others. But perhaps it has to do with your specific image or size of the image.