ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: burkhard on August 29, 2013, 11:40:25 AM

Title: how to display proper rational64u values
Post by: burkhard on August 29, 2013, 11:40:25 AM
Hi,

I'm trying to get exiftool to print the true rational64u values stored in an image file, i.e. , the actual numerator and denominator stored in the file.

A value of 2499/1000000 in the ExposureTime tag either gets printed as 1/400 (which is ok for ordinary use), or else as a floating point value if I disable print conversion (-n option). However, neither prints the actual values stored.

Is there a way to print the fraction proper?

Thanks

Burkhard.
Title: Re: how to display proper rational64u values
Post by: Phil Harvey on August 30, 2013, 07:23:22 AM
Hi Burkhard,

You can see the original raw values with the -v option (in hex too, with -v3), but this does a verbose dump of the entire file, so it may not be that convenient if you are just looking for the value of one tag.

- Phil
Title: Re: how to display proper rational64u values
Post by: burkhard on August 30, 2013, 03:09:35 PM
Thanks for the quick reply. Yes, an option to extract the values from selected tags only would be preferable, but since I don't need this very often, the -v option will do for me.

Cheers

Burkhard.