jpg image is somehow corrupted

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 ?
LVL 46
AndyAinscowFreelance programmer / ConsultantAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Paul SauvéRetiredCommented:
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 SpecialistCommented:
Post a few examples if you can
AndyAinscowFreelance programmer / ConsultantAuthor Commented:
>>do the images present themselves correctly on your mobile phone?
No.  The grey stripe also appears on the display on the phone.
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

AndyAinscowFreelance programmer / ConsultantAuthor Commented:
Thumbnail in windows explorer
Image opened in Windows photo viewer (same in other image editors)
And the original
AndyAinscowFreelance programmer / ConsultantAuthor Commented:
ps.  No error message appears when opening the image in an editor.
☠ MASQ ☠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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AndyAinscowFreelance programmer / ConsultantAuthor Commented:
Hmmm.  Any suggestions as to (preferably free) software to try a recovery/repair.
☠ MASQ ☠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 / ConsultantAuthor 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.
☠ MASQ ☠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 / ConsultantAuthor 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.
☠ MASQ ☠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 / ConsultantAuthor 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 / ConsultantAuthor Commented:
I've not had the problem repeat.  Thanks for your help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Images and Photos

From novice to tech pro — start learning today.