Page 1 of 1

PNG palette bugs in 6.6.1-6

Posted: 2010-05-10T21:02:59-07:00
by Martin.Leese
Hi,

I am getting the following errors using Image Magick 6.6.1-6 (Q16) under Windows XP:

Code: Select all

C:>convert -transparent "rgb(255,255,255)" -quality 100 -colors 10 floppy_front.png floppy_front2.png
convert: tRNS chunk has out-of-range samples for bit_depth `floppy_front2.png' @ warning/png.c/PNGWarningHandler/1457.
convert: Invalid background palette index `floppy_front2.png' @ warning/png.c/PNGWarningHandler/1457.
I am seeing lots of the second error, but only a little of the first.

In case it helps, I have made the input image "floppy_front.png" available under "Miscellany" at:
http://sites.google.com/site/mytemporarydownloads/

Have these bugs been fixed in 6.6.1-7 ?

Many thanks,
Martin

Re: PNG palette bugs in 6.6.1-6

Posted: 2010-05-10T21:13:05-07:00
by fmw42
It is possible that your input image is corrupt or not a valid PNG format.

I get the following when running:

convert floppy_front.png -strip -transparent "rgb(255,255,255)" -colors 10 floppy_front2.png
convert: Invalid background palette index `floppy_front2.png' @ warning/png.c/PNGWarningHandler/1458.


IM 6.6.1-7 Q16 Mac OSX Tiger

Re: PNG palette bugs in 6.6.1-6

Posted: 2010-05-10T21:51:11-07:00
by snibgo
IM 6.6.0-8 Q16 on Windows 7: both versions of the command (Martin's and fmw42's) run without complaint.

Re: PNG palette bugs in 6.6.1-6

Posted: 2010-05-11T06:34:12-07:00
by magick
The problem you reported is fixed in ImageMagick 6.6.1-8 Beta. Look for a point release of 6.6.1-8 within a week or two. Thanks.