darshan_atha has asked for the wisdom of the Perl Monks concerning the following question:

hi monks, i want to check that whether the image is corrupt or not i have used image::magick->read() method which is does not give 100% result anybody can through some light on this issue. thanx in advance.

Replies are listed 'Best First'.
Re: corrupt image
by true (Pilgrim) on Oct 31, 2002 at 07:11 UTC
    Try Image::Magick Ping.
    my ($width,$height,$size,$format) = $image->Ping("myimage.gif") or die + "FAIL";
    added: Also, just saw PerlMagick that read() returns error code 325 for Corrupt image.