convert to PNG8 crashs on one-color image

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
helour

convert to PNG8 crashs on one-color image

Post 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.
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: convert to PNG8 crashs on one-color image

Post by Drarakel »

What version of ImageMagick do you use?
I get such errors (no crash) only in older IM versions.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: convert to PNG8 crashs on one-color image

Post 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.
snibgo's IM pages: im.snibgo.com
helour

Re: convert to PNG8 crashs on one-color image

Post 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/
helour

Re: convert to PNG8 crashs on one-color image

Post by helour »

I tried kubuntu instead of mandriva and it works OK without any warning.
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: convert to PNG8 crashs on one-color image

Post 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)
Post Reply