I am trying to copy data from the APP12 section in Olympus D-600L files to EXIF section where Adobe Lightroom will see it.
The only field I have problems with is the FNumber. Here is what I start with
exiftool -G -FNumber a.jpg
[APP12] Fnumber : F2.8
Including
-EXIF:FNumber < Fnumber
in my .args file and running
exiftool -@ app2exif.args a.jpg
returns this message
Warning: Not a floating point number for ExifIFD:FNumber - a.jpg
I think I just need a way of stripping of the F prefix so I can just pass the 2.8 across. Anyone any thoughts?
Thanks in advance.
Try tihs:
-EXIF:FNumber<${APP12:FNumber;s/F//}
You can read about this advanced formatting feature in the application documentation.
- Phil
Hi Phil, thanks for your suggestion. I tried putting this in a file called app2exif.args:
-EXIF:UserComment<${APP12:FNumber;s/F//}
-EXIF:FNumber<${APP12:FNumber;s/F//}
then running
exiftool -@ app2exif.args a.jpg
exiftool -G a.jpg| grep EXIF
and I get this
[EXIF] Orientation : Horizontal (normal)
[EXIF] Exif Version : 0221
[EXIF] User Comment : F2.8;s/F//}
The comment field suggests the variable substitutions haven't been applied. I don't understand why it now silently discards the FNumber request instead of warning about it being non-numeric.
I am running version 9.120.0 on Linux.
Any thoughts? I have attached an example picture from the Olympus in case its of interest.
Jan. 27, 2013 - Version 9.15
- Added advanced formatting feature to -p and -tagsFromFile options
- Phil
Great, thanks Phil!
I installed exiftool-9.58 and its working great now.
For other Olympus D-600L users that find there way here and want their meta data visible in Adobe Lightroom, here is the full .args file thats now working for me.
-EXIF:FNumber < ${APP12:FNumber;s/F//}
-EXIF:Flash < Flash
-EXIF:DateTimeOriginal < DateTimeOriginal
-EXIF:CreateDate < DateTimeOriginal
# -EXIF:UserComment < ""
-EXIF:ExposureTime < ExposureTime
-EXIF:Make < ID
put that in a file called app2exif.args, then do this
exiftool -@ app2exif.args picture_file_name.jpg
Then you can ask Lightroom to read the metadata again and you will see the correct capture time, shutter speed, aperture and flash status.
The docs give ways of processing a directory at a time too.