jpg image is somehow corrupted

AndyAinscow
AndyAinscow used Ask the Experts™
on
I've got a number of images (jpg) taken with a mobile phone camera.
When I look at the thumbnail picture (windows explorer) everything looks fine.
However when I open the picture in an image editor/viewer I find things like the image is rotated 90 or 180 degrees OR WORSE, the image is truncated.  By that I mean one might have a strip of grey covering half the image.
How can I 'repair' the jpg so the picture displays correctly ?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
do the images present themselves correctly on your mobile phone? if so, try downloading them again to your PC to a new folder.
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
Post a few examples if you can
AndyAinscowFreelance programmer / Consultant

Author

Commented:
>>do the images present themselves correctly on your mobile phone?
No.  The grey stripe also appears on the display on the phone.
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

AndyAinscowFreelance programmer / Consultant

Author

Commented:
Thumbnail in windows explorer
SNAG-0014.bmp
Image opened in Windows photo viewer (same in other image editors)
SNAG-0015.bmp
And the original
20190128_140934.jpg
AndyAinscowFreelance programmer / Consultant

Author

Commented:
ps.  No error message appears when opening the image in an editor.
Most Valuable Expert 2013
Commented:
Thumbnails and full images are separate files, the grey is an indication of corruption of the data and if this is the same on the phone as when viewed on PC then it's likely that cannot be recovered, ironically partial images are less likely to be recoverable than images which don't load at all where the header of the file is damaged and can be rebuilt without any information about the subject of the image being needed just that it needs a recognizable header for a JPEG.

Orientation/rotation problems are due to the viewer software misinterpreting the orientation bit value from the camera

Although you could try some image recovery software, the problem you're describing suggests that you will be out of luck :(

Most viewer software apps use at least some fuzzy logic so that if there are a few bits that make no sense when opening the image they are ignored that doesn't seem to be the case here.
AndyAinscowFreelance programmer / Consultant

Author

Commented:
Hmmm.  Any suggestions as to (preferably free) software to try a recovery/repair.
Most Valuable Expert 2013

Commented:
I got a free trial a while back on a few, of about three I used there was one that worked better than the others but a) can't remember which right now and b) wasn't free but might have showed what it could do in a trial mode - I'll check when I'm home.  Not to keep going on about the odds but don't want you getting your hopes up too much.
AndyAinscowFreelance programmer / Consultant

Author

Commented:
Some images are OK, others rather better than this - it was the worst.
It will be annoying if they are totally gone but not something I can't get again sometime in the future.  I'll have to be happy with what I get in the end.
Most Valuable Expert 2013

Commented:
StellarPhoenixPhotoRecoverySoftware was my winner but if you upload one of the jpgs I guess I can throw some of the other things at it and see if anything works.
AndyAinscowFreelance programmer / Consultant

Author

Commented:
@ MASQ - sorry for not responding but I don't seem to be receiving all emails informing me someone has responded.
I'll try to find that and have a go later.

There is a jpg attachment in an earlier comment with this problem.


Further info which may not be useful or relevant.
I've taken numbers of pictures with the phone (android version 5 by the way) where it stores them on an SD card.  I then view the pictures in the gallery on the phone.  All OK.  I close the gallery viewer.  I reopen the gallery viewer and all the pictures are fine.  Close the gallery and reboot the phone.  Now when I view the pictures again in the gallery viewer numbers are corrupted in this way with grey stripe covering part of the picture.
I've realised that the grey stripe is never covering a middle part of the picture, it is always either the start up to a point or from a point up to the end of the picture.  Makes me wonder that in the header there might be something specifying grey from this point for the next 'x' pixels where the x has been corrupted to something beyond the end of image, so the viewer/editor displays incorrectly and ignores the rest of the image.
Most Valuable Expert 2013

Commented:
No luck recovering that image :(

Looking at the raw data there doesn't seem to be any particular part of the file that is wrong in isolation. The image EXIF says this is a Galaxy S5.
From what you're describing it might be the SD Card at fault, do you have another branded 16GB you could use to test?

It would be interesting to compare (side-by-side) an image copied from the card before the reboot corruption takes place and the resulting corrupted file afterwards if you think the corruption is that predictable.
AndyAinscowFreelance programmer / Consultant

Author

Commented:
OK, thanks for trying.  I've still to have a go myself.

>>It would be interesting to compare (side-by-side) an image copied from the card before the reboot corruption takes place and the resulting corrupted file afterwards if you think the corruption is that predictable.

I'll see if I can do that.


SD card - I was wondering that myself.  I'll see if I can get hold of one or test this card in another phone.
AndyAinscowFreelance programmer / Consultant

Author

Commented:
I've not had the problem repeat.  Thanks for your help.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial