how to display proper rational64u values

Started by burkhard, August 29, 2013, 11:40:25 AM

Previous topic - Next topic

burkhard

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.

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

burkhard

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.