Page 1 of 1

"Improper Image Header" 1 bit per pixel PNG

Posted: 2010-03-29T12:13:32-07:00
by anotherprogrammer123
Hi,

I am using "ImageMagick-6.6.0-10-Q8-windows-dll" and have some problems loading PNG and TIFF files with 1-bit-per-pixel depths.

Here is a sample .png file that reproduces this error: Image
This .png file works perfectly in MS Paint, IrfanView, Windows Photo Gallery, etc.

When I run the command "imdisplay failed2.png" the image loads, but I get a weird display:
Image
When I try to save to .jpg, an empty file is written.

When I try to run "convert failed2.png fixed.bmp" the same image displayed in IMDisplay is saved (the weird barred one) and no error is returned!
Graphicksmagick however works.

Any ideas as to why this is happening?

Thanks in advance!

Re: "Improper Image Header" 1 bit per pixel PNG

Posted: 2010-03-29T12:20:12-07:00
by magick
We can reproduce the problem you posted and have a patch for ImageMagick 6.6.1-0 Beta available by sometime tomorrow. Thanks.

Re: "Improper Image Header" 1 bit per pixel PNG

Posted: 2010-03-29T20:41:11-07:00
by anotherprogrammer123
Thanks!

Re: "Improper Image Header" 1 bit per pixel PNG

Posted: 2010-03-30T05:32:33-07:00
by glennrp
Should be OK in the SVN repo now. One-bit paletted PNG images were read incorrectly.

Glenn

Re: "Improper Image Header" 1 bit per pixel PNG

Posted: 2010-03-30T15:39:56-07:00
by anotherprogrammer123
Thanks for the quickness!