How to provide a tag value in hex?

Started by jnagy, May 27, 2024, 12:00:04 PM

Previous topic - Next topic

jnagy

I am trying to set the WhitePoint and a few other tag in my image and have the values I want in hex. How can I provide hex values to exiftool?

For example, I have hex value `00000C37 00002710 00000CDA 00002710` that I want to use as my WhitePoint but am unsure how to provide it to exiftool. I know I can convert it to decimal like the following but keeping it in hex is simpler for me.
exiftool -WhitePoint="..., ..." image.jpgThanks!

Phil Harvey

The only alternatives here are to override ExifTool's WhitePoint definition with a user-defined tag that does the conversion you want, or to do the conversion to floating point before calling ExifTool.

- 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 ($).