ExifTool Forum

ExifTool => Newbies => Topic started by: PaulPanter on May 18, 2024, 01:18:30 PM

Title: Extract most tags as numeric, except 2 tags as string?
Post by: PaulPanter on May 18, 2024, 01:18:30 PM
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?
Title: Re: Extract most tags as numeric, except 2 tags as string?
Post by: StarGeek on May 18, 2024, 01:25:22 PM
Use the # version of the -n (--printConv) option (https://exiftool.org/exiftool_pod.html#n---printConv) to extract specific tags as their raw values
-Model -FocalLength -FNumber -ISO -ExposureTime# -LensID# ...
Title: Re: Extract most tags as numeric, except 2 tags as string?
Post by: PaulPanter on May 18, 2024, 01:31:56 PM
Cool. Many thx. Exactly what I want. Haven't found that on a fast search in the documentation.