I was on a bicycle trip and the battery of my SLR busted and wsas unusable. As there was no new battery available along my journey, I used the smartphone camera. After I was back I downloaded the pictures from the phone to the PC with the help of airdroid. At the same time I deleted the pics on the phone. Unpacking the zipfile with the pics I had to learn that not one of them would display, as they had lost their meta-information.
Does anyone know a tool that could open those pics and let me add new meta-information or that restores the info? I looked at exiftool (package name: libimage-exiftool-perl), which is very powerful but does not do what i need.
greetz
devil
I remember that some time ago I repaired corrupted exif information (after an undelete from SD-card) with a tool called jhead.
http://www.sentex.net/~mwandel/jhead/ -> "...Create new minimal exif header containing date and thumbnail"
It is available via apt-get.
Thanks for the suggestion.
Unfortunately jhead -mkexif foo.jpg only gives Skipping readonly file foo.jpg
Any ideas on that? I don't have much of a clue on photo tools.
greetz
devil
@devil: maybe that helps here.
$ exiftool -all= foo.jpg
and then
$ jhead -mkexif foo.jpg
After fixing some rights on those pics, file says: file IMG_20140805_135018.JPEG
IMG_20140805_135018.JPEG: data
Pictures that are not corrupt display as: JPEG image data, EXIF standard
Any ideas if those pics are retrievable at all?
Edit: exiftool, as suggested by bluelupo says: Error: Not a valid JPEG - foo.JPEG
Edit 2: gwenview says, the pics have no EXIF, IPTC or XMP infos at all
greetz
devil
helps this?
$ jhead -purejpg foo.jpg && jhead -mkexif foo.bar
more infomation: http://www.sentex.net/~mwandel/jhead/usage.html
Unfortunately the same as before: Not JPEG: foo.jpg
I have read through your link before without finding anything that works. :(
greetz
devil
da gab es doch mal papaya cms ...
http://www.papaya-cms.com/doc/papaya-cms/de/basissystem/5.1.5/ch06s04s07.html
und dort rückwärts blättern ...war früher immer open source . . . ist doch gnu ?
I had one instance of incomplete data transfer using Airdroid. I'm not sure what caused it and it usually works correctly.
devil, sorry to hear that, I had that happen also, not just with pictures, but important crap (yes, backed up to cloud also, but still) one of the main reasons I dropped airdroid, zipfiles are hit & miss and way too many times are corrupted. I switched to droidoverwifi some time ago and never looked back.
I did get lucky with some of my pictures (of course not the ones I really wanted to keep) by converting them to .png (imagemagick)
convert snapshot.jpg snapshot.png
Not saying this will work or save the day, but worth a try
https://people.debian.org/~naoliv/misc/imagemagick/link/www/convert.html
the problem with the zip files is not unknown in airdroid, the same here i can`t open the downloaded photos in the extracted zip file
http://forum.airdroid.com/categories/bugs/p4 (http://forum.airdroid.com/categories/bugs/p4)
the hint http://forum.airdroid.com/discussion/13206/downloaded-zip-files-won039t-open-galaxy-4-mac (http://forum.airdroid.com/discussion/13206/downloaded-zip-files-won039t-open-galaxy-4-mac)
Quote from: airdroid forumAs to the zip issue, please go to Settings in AirDroid app > Encoding for zip file > change it from UTF-8 to GBK or from GBK to UTF-8.
did not work for me ...
Quote from: piper on 2014/08/20, 12:39:54
I switched to droidoverwifi some time ago and never looked back.
Wow, what a great tip -- thanks Piper! This app looks really nice, sorry about Devil's tragedy but this is a good outcome for those who need such a tool.
Well, about to give up. Convert to png from the great imagemagick did not do the trick either:
convert.im6: Not a JPEG file: starts with 0x00 0x00 `IMG_20140805_135018.JPEG' @ error/jpeg.c/JPEGErrorHandler/316.. Any more ideas?
greetz
devil
Way out of my experience, but have you taken a look at one of those files with okteta? If you can use okteta to examine a known valid .jpg file, maybe with the help of google you could figure out where the "validity" in the file is set, and change the broken file(s) accordingly. It's a reach, but that's something I would try before throwing in the towel.
EDIT: A quick look at some of my image files, created with a camera and another modified and saved with gimp, and with okteta I see I have both EXIF and JFIF formats. See here (http://en.wikipedia.org/wiki/JPEG_File_Interchange_Format). If you could copy valid EXIF headers from a known good file and overwrite the bad headers on a bad file, possibly you could end up with a "valid-looking" .jpg file with wrong EXIF on it.
One last resort, if the zip-file you got from android is somehow not compatible, you could try to open that zip on a complete different system (someones Mac or Windows).
der bud: the zip file got deleted after I unpacked it. :(
diebl: okteta is a very good idea, will try that lateron tonight in a quiet hour
greetz
devil
If okteta does not work, why not trying photorec (testdisk). As far as I know photorec doesen't care about lost metadata but tries to recover raw data. If it then wouldn't add some general meta-data to foo.jpg it were of no use.
I just tried Droid Over Wifi and it successfully downloaded 1.7GB of camera files that failed with Airdroid. Thanks for the tip, towo!
One last resort, if the zip-file you got from android is somehow not compatible, you could try to open that zip on a complete different system (someones Mac or Windows).
good idea, with wn XP in virtualbox it works to open the photos in the zip files, witch I could not open in linux, it also works to open the extracted photos.
Yes, good idea, I will try that with my neighbours Windows install and report back. The zipfile is gone, all I have is the jpegs.
greetz
devil
I would try irfanview in windows to read the jpg and than save it in a new File.
Maybe you can upload one of those jpgs for us all to do some tests? If it is not too private?
BTW: Because I also had such issues I now use "ES Datei Explorer" on my Android device to turn it into an FTP server so I can download the images via Dolphin.