Mailinglist Archive: opensuse (818 mails)

< Previous Next >
[DIAGNOSED] Re: [opensuse] Howto repair - corrupt jpeg file - anything new out there?
On 08/17/2011 06:04 PM, David C. Rankin wrote:
Braintrust, (graphics file gurus):

I have a handful of family pictures that have gotten corrupted somehow. A
majority have the thumbnails in place showing the initial exif header is in good
shape, but the scan section may be hosed. All pictures were taken from the same
kodak camera, so a hex edit replacement of the jpg header may be an option. I
don't know, I've just been googling for ideas. I suspect the corruption occurred
in the copy from the flash drive to the hard-disk. The flash drive is long long
overwritten.


Just wanted to drop a note and say thanks for your help and suggestions. The files are actually corrupt jpeg files. I don't know why I didn't do this before, but I finally just opened the files in a hex-editor to take a cursory look at the content and file structure. (probably because I didn't think I would be able to read it anyway :) They contain garbage for the data stream. There is all kinds of junk in the files. e.g.

0006:9460 80 00 20 00 58 00 00 00 1b 00 00 00 00 00 00 00 .. .X...........
0006:9470 1a 00 00 00 00 00 00 00 53 00 56 00 47 00 46 00 ........S.V.G.F.
0006:9480 45 00 43 00 6f 00 6e 00 76 00 6f 00 6c 00 76 00 E.C.o.n.v.o.l.v.
0006:9490 65 00 4d 00 61 00 74 00 72 00 69 00 78 00 45 00 e.M.a.t.r.i.x.E.
0006:94a0 6c 00 65 00 6d 00 65 00 6e 00 74 00 07 7f 00 00 l.e.m.e.n.t.....
0006:94b0 18 95 ce f8 07 7f 00 00 00 01 25 00 20 00 00 00 ..��......%. ...
0006:94c0 78 1f 9f 01 08 7f 00 00 0e 00 00 00 00 00 00 00 x...............
0006:94d0 00 00 00 00 39 00 32 00 80 03 2c 00 18 00 00 00 ....9.2...,.....
0006:94e0 00 00 00 00 00 00 00 00 28 16 c3 04 00 00 00 00 ........(.�.....
0006:94f0 80 03 00 00 18 00 00 00 00 00 00 00 00 00 00 00 ................
0006:9500 80 06 59 03 00 00 00 00 ac 06 00 00 60 00 00 00 ..Y.....�...`...

Parts of the file are fine, but other parts make no sense at all. It appears that the actual SD memory card itself was hosed. That is the only way I can think of that I could actually copy the file and have it end up in a proper 'abc.jpg' filename without generating a copy error, but still have garbage inside. Something like a cross-linked file on the card causing the garbage in the files. Leave it to the DOS filesystem on the card to mess things up :)

Oh, well, the downside to digital photography... I guess this is the equivalent to shooting on an exposed roll of film...

On another note, for those faced with figuring out what is wrong with a jpeg, the combination of 'jhead' and the different parts of 'convert' give you the best information. Both great tools for getting image data.

--
David C. Rankin, J.D.,P.E.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups