Detect and repair corrupt images

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
jbuzz
Posts: 4
Joined: 2016-01-19T15:51:51-07:00
Authentication code: 1151

Detect and repair corrupt images

Post by jbuzz »

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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Detect and repair corrupt images

Post by snibgo »

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