Page 1 of 1

convert to PNG8 crashs on one-color image

Posted: 2010-07-03T02:25:52-07:00
by helour
Try this command on a simple one-color (green, 256x256 pixels) image:

Code: Select all

convert picture.png PNG8:new_picture.png
Result is crash with this information:

Code: Select all

convert: Memory allocation failed `new_picture.png' @ png.c/WriteOnePNGImage/6493.

Re: convert to PNG8 crashs on one-color image

Posted: 2010-07-03T05:27:04-07:00
by Drarakel
What version of ImageMagick do you use?
I get such errors (no crash) only in older IM versions.

Re: convert to PNG8 crashs on one-color image

Posted: 2010-07-03T05:31:25-07:00
by snibgo
See the "Problems with Png" thread: viewtopic.php?f=3&t=16490

If you are not on the current IM, an upgrade might fix it.

Re: convert to PNG8 crashs on one-color image

Posted: 2010-07-03T06:12:53-07:00
by helour
Hello boys, newest Centos version 6.6.2 works (I have to copied couple of files into /usr/lib & /usr/bin), only warning was there:

Code: Select all

convert: Invalid background palette index `new_picture.png' @ warning/png.c/PNGWarningHandler/1457
Thanks.

PS: Maybe there are some problems with mandriva packages, I need to check it... /long story/

Re: convert to PNG8 crashs on one-color image

Posted: 2010-07-03T06:14:45-07:00
by helour
I tried kubuntu instead of mandriva and it works OK without any warning.

Re: convert to PNG8 crashs on one-color image

Posted: 2010-07-03T07:57:49-07:00
by Drarakel
It's only a warning and not a real problem (unless you need a background color chunk in the PNG).
But to be honest, I wouldn't recommend using PNG8 in the current IM versions - it's a bit risky.
(It's all in here: viewtopic.php?f=3&t=16490)