JPEG Photo Repair

A place to discuss pretty much anything related to storage, computers, data recovery or technology.
lcoughey
Site Admin
Posts: 303
Joined: Thu Jan 08, 2015 7:23 pm

JPEG Photo Repair

Post by lcoughey » Thu Mar 24, 2016 6:58 pm

Although I haven't had a lot of success with this program, I can see how it could be useful in the right circumstance.

http://anderspedersen.net/jpegrepair/

As it is a manual repair process, it is not one that I recommend for those who have a huge amount of photos to repair. But, if it is just a few, it might be worth it. The program is free.

Munawar84
Posts: 6
Joined: Wed Nov 23, 2016 3:22 pm

Re: JPEG Photo Repair

Post by Munawar84 » Thu Nov 24, 2016 3:30 pm

Can you give me suggestion when I need more.

Capone
Posts: 1
Joined: Fri Feb 24, 2017 11:58 am

Re: JPEG Photo Repair

Post by Capone » Tue Apr 04, 2017 5:45 am

I think maybe it needs an ypdate because when I tried it on a jpeg flie it said it doesn't recognize the file type lol.
Signature removed because user is a spammer.

lcoughey
Site Admin
Posts: 303
Joined: Thu Jan 08, 2015 7:23 pm

Re: JPEG Photo Repair

Post by lcoughey » Tue Apr 04, 2017 12:37 pm

Capone wrote:
Tue Apr 04, 2017 5:45 am
I think maybe it needs an ypdate because when I tried it on a jpeg flie it said it doesn't recognize the file type lol.
I assume that you read the whole page on their site and saw the known error messages, one of which was:
I get an error: "Cannot load file. JPEG type not supported"

This means that the JPEG file uses progressive encoding (or another rare encoding format, but progressive is most likely). I do not plan to add support for progressive JPEG files. The reason for this is that while it would be rather simple to implement, it would incredible hard to use an require advanced knowledge of how data are stored in progressive JPEG files.

Joep
Posts: 7
Joined: Tue Feb 07, 2017 2:18 pm
Location: Netherlands
Contact:

Re: JPEG Photo Repair

Post by Joep » Tue Jul 11, 2017 1:22 am

The tool is too clumsy, but interesting.

I created 3 tools that I use for JPEG repair:

- A checker that walks the chain of JPEG markers. Sort of like a chkdsk for JPEGs.
- An editor: like a hex editor but after each byte I modify I can re-render the JPEG so I can immediately see the result. I can also step through rendering and pinpoint the exact byte where corruption is introduced. I can then remove, add or modify the byte.
- An inpaint tool to fill in areas I deleted from the image stream by using the surrounding data.

This is an animated GIF of a recent project that shows the different stages of repair.

1. > 2, is after I fixed 'structural' damage (invalid markers taken out of the chain). As you can see all of a sudden data becomes visible.
3 + 4, I edit the image data
5, is after 'inpainting'.

Image

- Joep
http://www.disktuna.com - disk tools & data recovery software

lcoughey
Site Admin
Posts: 303
Joined: Thu Jan 08, 2015 7:23 pm

Re: JPEG Photo Repair

Post by lcoughey » Tue Jul 11, 2017 12:54 pm

Very cool Joep How long is the average process to repair a single file? My main issue with JPEG photo repair is that sometimes a client has hundreds of damaged files, usually because of bad sectors.

Joep
Posts: 7
Joined: Tue Feb 07, 2017 2:18 pm
Location: Netherlands
Contact:

Re: JPEG Photo Repair

Post by Joep » Tue Jul 11, 2017 3:36 pm

Hi Luke,

Yes, that's the thing. Even a single bad sector I haven't been able to automate yet, it always requires me viewing the image and adjusting. But a single bad sector should be possible in under 5 minutes? Yeah, editing image stream and then inpainting tiny damaged areas, should be possible.

The one in the GIF was a mess. Viewers would only render half the image and the repair tool you mention at the start of the thread too. I can't really recall how long it took me as I modified my code in between as well. Running into all kinds of stuff I never ran into yet. Real 'production' time was probably at least an hour. So when you'd need to charge real labor cost it would be an expensive picture.

Do you run into this kind of stuff often? Do you offer customers you fix their JPGs? Want me to do it ;)
http://www.disktuna.com - disk tools & data recovery software

lcoughey
Site Admin
Posts: 303
Joined: Thu Jan 08, 2015 7:23 pm

Re: JPEG Photo Repair

Post by lcoughey » Tue Jul 11, 2017 3:51 pm

We have recovery projects every day that have some damaged photos. In most cases, the clients are satisfied with the 99.99% of their files, as most are either duplicates or taken within seconds of each other. So, a missing photo is not really missed. So, don't be surprised if I do refer someone your way.

Joep
Posts: 7
Joined: Tue Feb 07, 2017 2:18 pm
Location: Netherlands
Contact:

Re: JPEG Photo Repair

Post by Joep » Tue Jul 11, 2017 4:22 pm

Do or don't? Be surprised ...
http://www.disktuna.com - disk tools & data recovery software

Jared
Posts: 61
Joined: Tue Jan 13, 2015 5:56 pm
Location: Providence, RI
Contact:

Re: JPEG Photo Repair

Post by Jared » Tue Jul 11, 2017 7:41 pm

I've actually gotten pretty fast at repairing jpgs with bad sectors. I'd say I can repair a file with 3 or 4 bad sectors in around 5-6 minutes total. I've been offering this service for a while now: https://www.data-medics.com/jpeg-jpg-re ... -recovery/

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest