ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Corrupt TIFF
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

donaldadams1951

USA
4 Posts

Posted - Mar 05 2012 :  16:34:50  Show Profile  Reply
I save a TIff from database to file. How can I tell if the file is corrupt? In other words how can I make sure a file is an uncorrupted TIFF before I process it? Assume the file name is TIFFTest.tif.

Thanks

fab

1310 Posts

Posted - Mar 06 2012 :  00:20:39  Show Profile  Reply
ImageEn can test if a file is corrupted, but only after loaded (or tried to load) it. Example:

ImageEnView1.IO.LoadFromFile('TIFFTest.tif');
if ImageEnView1.IO.Aborting then
...corrupted...
Go to Top of Page

donaldadams1951

USA
4 Posts

Posted - Mar 06 2012 :  14:40:20  Show Profile  Reply
thanks...
Go to Top of Page

PStadler

Austria
60 Posts

Posted - Mar 01 2013 :  07:58:15  Show Profile  Reply
Hello,

What are the criteria that Aborting is true?

ImageEnView1.IO.Aborting

Some of the images (gif or png-Files) can be shown normally on ImageEnView component. Why are they corrupt?

I checked very large number of images in our image database. 0.0003%
of the images are declared as corrupt, but they open normal in component and also PaintShopPro.

Sincerely

Peter
Go to Top of Page

fab

1310 Posts

Posted - Mar 04 2013 :  14:15:19  Show Profile  Reply
Hello,
there are several reasons for signaling Aborting = true. Most commonly the file size is less than expected (however all pixels could be already read).
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: