Extract most tags as numeric, except 2 tags as string?

Started by PaulPanter, May 18, 2024, 01:18:30 PM

Previous topic - Next topic

PaulPanter

I want to extract -Model -FocalLength -FNumber -ISO -DateTimeOriginal -ImageDescription -Make -Software -Flash -ExposureProgram -MeteringMode -WhiteBalance -GPSLatitude -GPSLatitudeRef -GPSLongitude -GPSLongitudeRef -Orientation as numeric values, but -ExposureTime -LensID as the standard string. How can I do that and have JSON output as result? Is that possible?

StarGeek

Use the # version of the -n (--printConv) option to extract specific tags as their raw values
-Model -FocalLength -FNumber -ISO -ExposureTime# -LensID# ...
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

PaulPanter

Cool. Many thx. Exactly what I want. Haven't found that on a fast search in the documentation.