Page 1 of 1

identify corrupted images

Posted: 2007-02-12T04:12:55-07:00
by shakyamanoj
Hi all,
Is it possible to recognize corrupted images using ImageMagick? if yes, what sort of commands do I have to use?
I am using IM 6.3.1 on Windows XP.


Thank you in advance.

With regards,
Manoj Shakya

Re: identify corrupted images

Posted: 2007-02-12T14:36:46-07:00
by magick
Use the identify command to detect corrupted images. The identify program returns a non-zero exit status if a corrupted image is encountered.

Re: identify corrupted images

Posted: 2007-02-14T04:01:49-07:00
by shakyamanoj
Thanks for your reply.
Can you tell me what script do I need to write to know the number of colors of an image?
OS = Linux.
IM version = 6.2.3.

Thanks.


Regards,
Manoj Shakya