Page 1 of 1

convert PNG, Expected 8192 bytes; found 7587 bytes

Posted: 2014-04-02T00:49:09-07:00
by sunrunaway
I convert a png file to jpg, but imagemagick gives me error.

Image
http://i.imgur.com/NIaPOJT.png

Code: Select all

convert NIaPOJT.png NIaPOJT.jpg
convert: Expected 8192 bytes; found 7587 bytes `NIaPOJT.png' @ warning/png.c/MagickPNGWarningHandler/1830.
convert: Read Exception `NIaPOJT.png' @ error/png.c/MagickPNGErrorHandler/1804.
convert: corrupt image `NIaPOJT.png' @ error/png.c/ReadPNGImage/4050.
convert: no images defined `NIaPOJT.jpg' @ error/convert.c/ConvertImageCommand/3127.

Re: convert PNG, Expected 8192 bytes; found 7587 bytes

Posted: 2014-04-02T10:45:00-07:00
by fmw42
Your PNG file is corrupt. The PNG expert, glennrp, may be able to tell you why.

Re: convert PNG, Expected 8192 bytes; found 7587 bytes

Posted: 2014-04-04T13:16:24-07:00
by glennrp
fmw42 wrote:Your PNG file is corrupt. The PNG expert, glennrp, may be able to tell you why.
Sorry, no idea why it is truncated. But that's the problem.