I also have the same problem.
I issued the command as follows:
Code: Select all
identify -verbose corrupt.jpg >log.txt 2>&1
and I got the log.txt file. But I don't see any EXIT_STATUS there. I am sure that corrupt.jpg file is a corrupted file. How do I know now that the image is corrupted?
/*********************************************************/
This is the log.txt file.
------------------------
corrupt.jpg JPEG 406x491 DirectClass 67kb
identify: Corrupt JPEG data: premature end of data segment `corrupt.jpg'.
Image: corrupt.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Geometry: 406x491
Class: DirectClass
Type: TrueColor
Endianess: Undefined
Colorspace: RGB
Channel depth:
Red: 8-bits
Green: 8-bits
Blue: 8-bits
Channel statistics:
Red:
Min: 0 (0)
Max: 255 (1)
Mean: 172.474 (0.676368)
Standard deviation: 46.0133 (0.180444)
Green:
Min: 0 (0)
Max: 240 (0.941176)
Mean: 126.445 (0.495864)
Standard deviation: 38.8062 (0.152181)
Blue:
Min: 0 (0)
Max: 252 (0.988235)
Mean: 117.174 (0.459504)
Standard deviation: 38.1617 (0.149654)
Colors: 40905
Rendering-intent: Undefined
Resolution: 100x100
Units: PixelsPerInch
Filesize: 67kb
Interlace: None
Background Color: white
Border Color: #DFDFDF
Matte Color: grey74
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 90
Orientation: Undefined
JPEG-Colorspace: 2
JPEG-Sampling-factors: 2x2,1x1,1x1
Signature: d2836de2bccacd9b46d2a3954d4405ef974ae03a8612cac29103dfe8fb6d8f72
Tainted: False
Version: ImageMagick 6.2.3 09/13/05 Q16
http://www.imagemagick.org
/*********************************************************/
Thanks.
Regards,
Manoj Shakya