[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Corrupt Tiff headers

Posted on 2009-12-30
3
Medium Priority
?
979 Views
Last Modified: 2013-11-19
We had some software that by accident, deleted 40,000 scanned document images, all tiff files.  I found them all with recovery software and was able to restore all of them, but now, they cannot be opened in any photo editing software.  Photoshop can't read the header, and neither can anything else.  Is there a way to fix corrupt headers if that's the only problem?
0
Comment
Question by:dannyboy266
3 Comments
 
LVL 38

Accepted Solution

by:
lherrou earned 2000 total points
ID: 26149091
dannyboy266,

I'm afraid the prognosis is not good. My experience with corruption of image files such as you describe has been that recovery is rare.

* For the following items, always work on COPIES, not on your originals *

First of all, try photo recovery software: PhotoRescue (www.datarescue.com - for both Microsoft Windows and Mac OS X). This can deal with corrupted graphics files, and help repair the damaged files. I've had some success with PhotoRescue.

You can also sometimes open the files in a Hex editor, and alter the data stream slightly, allowing them to be opened with a graphics program. However, if there is a lot of information missing from the files, it is impossible to fully recover the images. The basic procedure is something like the following:

Open a working image file from the same source (same scanner, etc.) as your corrupted files in a hex editor, and take a look at the flow of the files -  The image header for a TIFF image is a fixed 8 byte segment always occurring at the beginning of the TIFF section of the file (some times there's EXIF information that comes before the TIFF header.  To ensure TIFF images can be read properly by PCs and Macs the header must indicate a byte order (in this case, the first two bytes of the file).  The first two bytes will either be hex 49 49 (II) for Intel format or 4D 4D (MM) for the Mac format. The next byte is 2A (decimal 42). This number should never change. Now, get an idea of the flow following that sequence.

Then, open your corrupt file, and look through the file. You're looking for a place where there's an obvious change to the flow of the data. If you can spot it, you might be able to fix it - at least if the damage is obvious, like a missing TIFF header, an erroneous character or a blank line introduced into the file.

Not to nag or say "I told you so", but ALWAYS have a backup plan and use it - recovering one lost file, like this, can pay for it.

Hope that helps,
LHerrou
0
 
LVL 11

Expert Comment

by:ashraf882
ID: 26173338
0
 

Author Closing Comment

by:dannyboy266
ID: 31671384
Yes they are indeed mostly corrupt...a few could be saved but not many.  Thanks
0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a previous article published here at Experts Exchange, Signature Image with Transparent Background (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_12380-Signature-Image-with-Transparent-Background.html), I explained how to cre…
This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question