Forgotten in its old age

by Aditya

submit your photo


Hall of Fame
View past winners from this year

Please participate in Meta
and help us grow.

Take the 2-minute tour ×
Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. It's 100% free, no registration required.

I inserted the SD card into my computer to look at some photos. I rotated some of them to look them from the correct angle, but unfortunately Windows Photo Viewer auto-saved the rotation. Now if I insert again the SD card into my Coolpix P50, when I try to visualize the photos that have been accidentally rotated I receive the error: "File contains no image data". I tried to rotate them again to the original orientation, but the error persists. Anyone knows how can I solve this problem and make my camera show again those photos?

share|improve this question
3  
Possible duplicate - photo.stackexchange.com/questions/24014/… –  ChrisF Dec 27 '12 at 12:21
    
Does the picture still look fine in the windows viewer? –  James Snell Jul 8 '13 at 12:52

2 Answers 2

Cameras usually do not like other software modifying their files. Camera firmwares usually able to create files and handle their own file formats, but they are not prepared to be fully standards compliant. Most cameras are extremely sensitive to even filesystem changes on the memory card, done by a computer.

Another error can be if you did not close your memory card properly, and since your computer modified the files, there were changes pending to be written. If those were not flushed, you might have ended up with damaged images.

The correct flow always is: shoot, download to computer, format memory card in camera.

Now, if your files are damaged on the memory card, and you do not have a local copy on your computer, you can try e.g. IfranView, which could open many damaged JPEGs. There are also tools that can recover files from your memory card, if they are valuable - but this is usually not a very fruitful approach.

share|improve this answer

There is probably something you can do but I'll venture to say it is not worth your time.

What happens is that cameras are programmed to show photos they take and assume that all the metadata is exactly the way they left it there. If you make any change, the metadata may change which is what happened in your case.

If you truly want to fix is you can use a command line tool like jhead to extract the metadata from a correct image and apply it to a broken image. This will of course cause other parts of the metadata to be incorrect. So you won't get your image exactly as it was unless you figure out exactly what metadata changed and use an EXIF editor to fix it.

Fuji camera can see images with changed metadata and display them with a little icon of a wrapped-gift. They cannot zoom in our out of them in most cases and usually wont display image info either.

share|improve this answer
    
I doubt the EXIF data changed at all from a simple rotation. It will be the file structure below that, that is different. –  Octopus Jun 7 '13 at 21:12
    
@Octopus - No idea what file-structure you are talking about. JPEGs are pretty standard but cameras can be very picky about metadata. The EXIF data has to change from the rotation because on camera, the JPEG is always oriented the same way and the EXIF has a flag to say how it should be displayed. Applying a rotation rotates all the blocks and resets the EXIF to display orientation matches the block orientation. –  Itai Jun 7 '13 at 23:19
1  
the jpeg format is quite flexible and can contain all sorts of different arrangements of data. quantization and huffman codes can be arranged any number of ways, but a camera that saves them in very specific formats probably isnt any good at reading a quantization (for example) it wasnt designed to write. huffman tables might have also changed which could confuse the camera. –  Octopus Jun 9 '13 at 3:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.