I often receive TIF images that throw exceptions when accessed using .NET System methods or other libraries. These are files are sometimes able to be rendered by Irfanview and resaved to the original file format which repairs the corruption somehow so the new image file then reads properly using the .NET methods that had previously failed.
Are there any suggested methods to detect and repair corrupted image files using ImageMagick?
Thank you.
Detect and repair corrupt images
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Detect and repair corrupt images
Compared with other software, IM is generally fussy about file validity, and won't attempt corrections. So you could use IM to identify problem files, then use other software to attempt corrections.
snibgo's IM pages: im.snibgo.com