Posted: 2006-03-06T11:33:15-07:00
Your script should work in identifying corrupt image files. An exception is returned if the file cannot be read.
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://imagemagick.com/discourse-server/
https://imagemagick.com/discourse-server/viewtopic.php?t=6022