How do i Repair .JPG (picture)

Hi Tech. Gurus,

I have some several important .jpg file recovered from a digital camera's memory after it was deleted. For some reason, i'm not able to open using any program( like photoshop, ms paint, ms fax viewer and etc), the size and file seems fine.

can any body suggest me how to repair these .jpg file.

Many thanks,
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


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

Here's some thoughts for you:
First of all, try photo recovery software: take a look at BadCopy Pro ( and PhotoRescue ( - for both Microsoft Windows and Mac OS X). Each of these can deal with corrupted graphics files, and help repair the damaged files. I've had my best success with PhotoRescue, although sometimes images can be fixed in one of these and not the other. You may want to go back to your original media (the camera memory) with these.

You can also sometimes open corrupted file in other applications. Start with Irfanview ( You might also try others like CorelDraw (which can sometimes import damaged JPGs. Once the file is imported into Draw it can be exported again as a new fresh JPG) or Photoshop (using RAW mode). For the latter, you need to know the size of the image in pixels. What you do in Photoshop is select File>Open As and in the dialog box choose RAW and then the file you want to open. Another dialog box will ask you to enter a size in pixels and the amount of channels (choose 3 here), leave the Header Size blank and click OK. You can even try importing into Word (Insert -> Picture -> From File), then save as a HTML file, which will export a new JPG.

You might also try opening the file and re-saving it in tif format. Save it as-is as soon as you open, then exit Photoshop and then re-open the new .tif file. You can also try rotating and saving, etc. Make sure you don't save over your original.

Last, some times the file can be opened in a text editor or a Hex editor, and the data stream altered 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 files from the same source (same digital camera, etc.) as your corrupted files in a hex editor, and take a look at the flow of the files -  typically they should begin with FFD8, followed by a string of other characters. Get an idea of the flow.

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 erroneous character or blank line introduced into the file.

Hope that helps,

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.