"Improper Image Header" 1 bit per pixel PNG
Posted: 2010-03-29T12:13:32-07:00
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:
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:

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!
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:

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:

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!