Suppress units of measure

Started by ekkidee, March 25, 2019, 05:11:56 PM

Previous topic - Next topic

ekkidee

Is it possible to have exiftool suppress the unit of measure on some fields?

I am using exiftool to dump the contents of various parameters in image files, and some in particular come back with units attached:

HyperfocalDistance: incudes "m" for meters
FocalLength: includes "mm" for millimeters
Couple more maybe ....

If the units are dropped, I can import the values into an Excel sheet as numbers where they sort properly.

I am fine w/ meters as a unit, but I know there is considerable power over the formatting of output from exiftool and I wonder if there is a way to suppress the "m" and "mm" on output of these fields.

Thanks.

Alan Clifford

exiftool -s3 -n -focallength p340_1778.jpg

gives

5.1

StarGeek

You can also add a hashtag to the end of any tag name to suppress the printconv on individual tags rather than suppress it globally (see -n (printConv) option docs).

If you're dumping all tags and not listing specific tags, I believe you'll have to create your own tag definition.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

ekkidee

Oh my, that's so simple (and so obvious in the man page), thank you for pointing it out.