convert PNG, Expected 8192 bytes; found 7587 bytes

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
sunrunaway
Posts: 3
Joined: 2014-01-06T02:13:42-07:00
Authentication code: 6789
Contact:

convert PNG, Expected 8192 bytes; found 7587 bytes

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Contact:

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

Post by fmw42 »

Your PNG file is corrupt. The PNG expert, glennrp, may be able to tell you why.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W
Contact:

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

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

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 5 guests