What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Specific Files partially corrupted by water


WishinFishin

Member
Messages
5
Likes
0
Howdy all,

I have 600+ photos that went under water with a camera while on vacation (3 examples attached). The water caused 1 or more layers of color to be placed on top of the photos. One example shows 2 different "colorings", 1 opaque & 1 semi-transparent. I know that the photo information is still in the file because as I watch the preview on my PC, I see the photo first and then this "color layer" overlaying the photo second. I was wondering if someone had the expertise to advise me if & how I could remove this overlay to restore the underlying photo. I'm happy to do the work, but just need some advice on how to proceed (or if it's possible). Sorry, these are all .JPG files from a Nikon Coolpix and I do not have any RAW file data.

Thanks all!
 

Attachments

One interesting thing is I uploaded one of these photos to another website and the thumbnail showing the uploaded file had stripped away the obstruction, showing the original restored photo. This tells me there is a way to access this "layer".
 
I seen what you are talking about, when I download it on my pc the thumbnail doesn't show corrupted. Interesting.
 
Data is there for sure but can't seem to access it, in photoshop it shows corrupted but if you compress it in a winrar file and open it from there for a millisecond it shows normal.

Untitled-1.jpg
 
I'm not specialist in this, but as far as I know every image has also thumbnail data inside of itself containing small version of image, and probably this part wasn't damaged, but I will do what I can to help.

EDIT:
For now I've extracted data from thumbnails. Bigger thumbnail shows a little more of image than original file itself, but still it's damaged, and as I suspected small thumbnail is not damaged.
 

Attachments

  • DSCN1552_PreviewImage.jpg
    DSCN1552_PreviewImage.jpg
    68.2 KB · Views: 4
  • DSCN1552_ThumbnailImage.jpg
    DSCN1552_ThumbnailImage.jpg
    7.3 KB · Views: 4
Last edited:
Tested several methods and different softwares, and maybe someone with wider knowledge and experience will be able to help you more.
Here is a result of using JPEG Recovery Professional (I'm not connected anyway with this software or developer).

View attachment R_DSCN1552.jpg

And after photoshop tweaking a little, could be better but would need a lot more time for even one photo:

View attachment R_DSCN1552_v2.jpg
 
Thanks, that makes sense that the thumbnail might be a file within a file and that was not damaged on these samples. If that's the case, it will be a very low-res option of the original photo without near the amount of work revnart shows is required. Is there an easy way to access just the thumbnail and save that as a separate file? Many of these photos are of just inanimate stuff and not that important, but any photos that people are in might be worth more effort. The thumbnails will at least show me what is under consideration. Thanks to all above!
 
I called a buddy and send him one of the pictures, yes they can be fixed but they have to manually be edited in a HEX editor and will take
a lot of time to recover as they have to be manually edited.
 
On this particular image this is the problem as you can see "ERROR: Bad marker @ 0x001277E5.0" and many more need to be edited to the correct
format. How is this done? I honestly don't know.

Untitled-1.jpg


Code:
*** ERROR: @ 0x001277B7.5, nNumCoeffs>64 [69]
*** ERROR: Bad scan data in MCU(303,213): Lum CSS(1,0) @ Offset 0x001277B8.6
           MCU located at pixel=(4856,1704)
  Scan Data encountered marker   0xFF15 @ 0x001277E5.0
  NOTE: Marker wasn't EOI (0xFFD9)
*** ERROR: Bad marker @ 0x001277E5.0
*** ERROR: Bad scan data in MCU(305,213): Lum CSS(1,0) @ Offset 0x001277E7.4
           MCU located at pixel=(4888,1704)
*** ERROR: @ 0x0012DE56.1, nNumCoeffs>64 [65]
*** ERROR: Bad scan data in MCU(253,216): Lum CSS(0,0) @ Offset 0x0012DE57.3
           MCU located at pixel=(4048,1728)
*** ERROR: @ 0x00165FD0.3, nNumCoeffs>64 [66]
*** ERROR: Bad scan data in MCU(138,241): Lum CSS(0,0) @ Offset 0x00165FD1.2
           MCU located at pixel=(2208,1928)
*** ERROR: Can't find huffman bitstring @ 0x00165FF3.6, table 0, value [0xff0fe900]
*** ERROR: Bad huffman code @ 0x00165FF3.5
*** ERROR: Bad scan data in MCU(139,241): Lum CSS(1,0) @ Offset 0x00165FF3.6
           MCU located at pixel=(2232,1928)
*** ERROR: @ 0x0016604D.6, nNumCoeffs>64 [65]
*** ERROR: Bad scan data in MCU(141,241): Lum CSS(1,0) @ Offset 0x0016604E.3
           MCU located at pixel=(2264,1928)
  Scan Data encountered marker   0xFF06 @ 0x001661B2.0
  NOTE: Marker wasn't EOI (0xFFD9)
*** ERROR: Bad marker @ 0x001661B2.0
*** ERROR: Bad scan data in MCU(152,241): Lum CSS(1,0) @ Offset 0x001661C5.4
           MCU located at pixel=(2440,1928)
*** ERROR: @ 0x00166272.1, nNumCoeffs>64 [70]
*** ERROR: Bad scan data in MCU(157,241): Lum CSS(1,0) @ Offset 0x00166275.1
           MCU located at pixel=(2520,1928)
  Scan Data encountered marker   0xFFE1 @ 0x00175F39.0
  NOTE: Marker wasn't EOI (0xFFD9)
    Only reported first 20 instances of this message...
  ERROR: Expected RST marker index RST1 got RST7 @ 0x00387DCC.0
*** ERROR: Overread scan segment (after bitstring)! @ Offset: 0x00387DCB.1
 
Thanks O.Robles. I did find a free tool called Exiftool that would extract the Thumbnail from the .JPEG. I used it as a .EXE file in the command prompt with the command "exiftool -b -ThumbnailImage my_image.jpg > my_thumbnail.jpg" to store the thumbnail as a separate file. Of course, it's small and low-res. Thanks to all who gave advice.
 

Back
Top