Handling bad SubIFD entries in photos you want to geo tag / the problem
I just converted some of my RAW photos in RawTherapee and polished them in Photoshop CS. Of course I also wanted to GeoTag them (using GeoSetter) before putting the images in my archive. Fortunately, a GPS point was found in my trace for all photos. Unfortunately, I couldn’t write the Exif-GPS position due to a “bad subifd directory”. That’s what exiftool (which geosetter uses) tells me.
So – how to get the geo information into exif – or how to get the bad SubIFD directory out?
The solution:
In the end the issue was rather easy to solve:
- copy your images to a linux machine (or vm or whatever)
- copy all images to a directory “
conv
” AND in parallel to “conv2
“ - enter “
conv2
“ - remove all exif information from the conv2 images by
find ./*.jpg -exec exiftool -exif:all= {} ;
- enter “
conv1
” & copy the exif information (except SubIFD) to the cleaned images in “conv2
” by
find ./*.jpg -exec exiftool -tagsfromfile {} -exif:all --subifd:all ../conv2/{};
- you’re done.
- (fire up geo setter and geo tag your photos)
Be happy!