Demaged JPG file!? Log Out | Topics | Search
Moderators | Edit Profile

X-Ways Support Forum » Hex Editing » Demaged JPG file!? « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Aless
Posted on Sunday, Sep 22, 2002 - 19:34:   

How can i repair/restore my demaged jpg files. By mistake i cleaned it from my HDD. I managed to recovered it, but i can see just 2 of 30. I tried many graphics program (GP), but unfortunately with no success. Some GP they menaged to show a few images (10), but just in a "thumbnails". When a try to open some, it appear:" Unable to open the file. Unknown file format." Some they appear just in the beginning, a few lines and thats it.
Top of pagePrevious messageNext messageBottom of page Link to this message

Stefan Fleischmann (Admin)
Posted on Monday, Sep 23, 2002 - 1:43:   

It seems these file were stored in a fragmented way, in discontiguous clusters. As WinHex states, it relies on non-fragmented files. To repair the files, you would have to try hundreds or hundreds of thousands different recombinations of clusters manually, which is virtually impossible, I'm afraid.
Top of pagePrevious messageNext messageBottom of page Link to this message

chris taylor
Posted on Wednesday, Jun 8, 2005 - 22:07:   

Some programs actually save two images within one jpeg file - the first being a thumbnail and the second being the actual, full-size image. That is why you see the whole thumbnail but not the whole image.

No graphics programs that I've found (and I've looked) can fix these files, since the whole image isn't in the file anymore. Fragments of it are somewhere else on the disk.


on a semi-related side note:
I have had some success recreating a jpeg stream when the file was contiguous but damaged (due to hardware failure). The corrupt bytes caused the image to only be viewable up to the damage and black from then on. I was able to get the rest of the image viewable again, but it was tedious. So, Stefan, buy me a steak next time you are in town and I'll tell you how I did it - then you can write a program that will assist in this kind of image recreation to add to your suite.
Top of pagePrevious messageNext messageBottom of page Link to this message

Andre
Posted on Tuesday, May 23, 2006 - 10:43:   

cool. i also have this problem, tried to salvage the data from a badly corrupted CF card and same problem.

also, what would make more sense is to use a mechanism that separates the (large) JPEG file into lots of small single line JPEGs, then processes these further to remove artifacts.

-A
Top of pagePrevious messageNext messageBottom of page Link to this message

Mike Montgomery (Mikem22)
Posted on Tuesday, May 23, 2006 - 13:17:   

The best way is to get a map of used clusters from the FAT. This will leave the available clusters, which cuts down the number of combinations. Clusters full of FF, 00, F7 etc can be ignored.

Mikes 2 bobs worth..
Top of pagePrevious messageNext messageBottom of page Link to this message

DKunha (Dkunha)
Posted on Friday, Jul 14, 2006 - 13:40:   

I'm having the same problem. I've recover jpg files from a damage CF card. Half of the pictures were not good, some band of the picture were out of place and with color changes.
I've found this program:
http://www.s2services.com/hosted-freeware/jpg-repair.zip
but it needs to test bit by bit in order to repair the image. Isn't there some automated program to do this?

Add Your Message Here
Post:
Username: Posting Information:
Only registered users may post messages here, i.e. you need to have an account.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:
Forum operated by X-Ways Software Technology AG.