Log in

View Full Version : fixing correcting a jfif/jpeg file


wertert
30th October 2006, 19:11
Hi All

Sorry about the post on doom9 but I'm stuck for other options. This site has aways been a real help in the past for video related questions so I was hoping someone may be able to point me in the right direction for stills.

I have been asked to help fix a couple of jpeg images which appear to have some strange data/corruption embedded in the file. The images will load into any standard jpeg viewer but they start to break up. It also looks as if some dummy data has been added and this shunts all the correct data along and the image breaks up. It also looks like the pallette gets messed with

Hard to explain in words. try this link Image1.jpg (http://www.perfectmotion.co.uk/Image1.jpg)

I've been checking the jpeg/jfif specs and view the files in a hex editor but so far I'm stumped.

Thanks in advance

wertert
31st October 2006, 07:53
Any ideas ? anything ... i'm desperate :confused: got to be some jpeg experts out there ...

DarkZell666
31st October 2006, 14:43
It indeed looks like some data has been inserted (or even deleted) in a silly place and that the pixels are all shifted and wrapped around the edge.

If data has been lost you're out of luck anyway, but if data has been inserted (I'd be curious to know how it happened :x), the hexeditor is indeed your friend :p

I suppose someone sent those photos to you in that state (since you are asked to help restore them :p), so I would suspect that their own hdd crashed or needs a "chkdsk c: /f /r". It's one of the possible explanations I come up with as to why some data magically appeared at that place (ie: FAT corruption).

Do you have more info about where the pictures come from ? (digital camera, scanned photos, hand-made pictures in PhotoShop or whatever, etc.)