identify corrupted images

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
shakyamanoj

identify corrupted images

Post by shakyamanoj » 2007-02-12T04:12:55-07:00

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

User avatar
magick
Site Admin
Posts: 10957
Joined: 2003-05-31T11:32:55-07:00

Re: identify corrupted images

Post by magick » 2007-02-12T14:36:46-07:00

Use the identify command to detect corrupted images. The identify program returns a non-zero exit status if a corrupted image is encountered.

shakyamanoj

Re: identify corrupted images

Post by shakyamanoj » 2007-02-14T04:01:49-07:00

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

Post Reply