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?".
sunrunaway
Posts: 3 Joined: 2014-01-06T02:13:42-07:00
Authentication code: 6789
Post
by sunrunaway » 2014-04-02T00:49:09-07:00
I convert a png file to jpg, but imagemagick gives me error.
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.
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2014-04-02T10:45:00-07:00
Your PNG file is corrupt. The PNG expert, glennrp, may be able to tell you why.
glennrp
Posts: 1147 Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W
Post
by glennrp » 2014-04-04T13:16:24-07:00
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.