ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Mac2 on March 27, 2024, 10:26:52 AM

Title: XML Output et:prt and et:val
Post by: Mac2 on March 27, 2024, 10:26:52 AM
When using -X, some tags with a numeric (rational) type:

- some tags (e.g. XMP-exif:GPSAltitude) produce both <et:prt> and <et:val>
- some tags (e.g. XMP-exif:GPSDestDistance) produce only <et:prt>.

Why is that? Is there a rule for this?
I would have expected that numeric tags always get <et:val> in addition to <et:prt>.
Title: Re: XML Output et:prt and et:val
Post by: Phil Harvey on March 27, 2024, 11:40:55 AM
The rule is that et:val is only output if it is different from et:prt

- Phil
Title: Re: XML Output et:prt and et:val
Post by: Mac2 on March 27, 2024, 01:33:45 PM
Understood. Thank you!

Need to change some code now.