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 »

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: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: identify corrupted images

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

Re: identify corrupted images

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