How do I check for corrupt TIFF images in C#?

Posted by Jojo on Stack Overflow See other posts from Stack Overflow or by Jojo
Published on 2010-04-12T11:56:58Z Indexed on 2010/04/12 12:13 UTC
Read the original article Hit count: 355

Filed under:
|
|

Hi Everyone,

I searched on how to check if a TIFF file is corrupt or not. Most suggests wrapping the Image.FromFile function in a try block. If it throws an OutOfMemoryException, its corrupt. Has anyone used this? Is it effective? Any alternatives?

© Stack Overflow or respective owner

Related posts about tiff

Related posts about c#