Trying to write RegionInfo via stay_open session

Started by berliner_ffm, September 03, 2022, 05:25:29 PM

Previous topic - Next topic

berliner_ffm

Hi,
I am trying to update the RegionInfo via Exiftool.
I am using a stay_open-Session.

The problem I have is, that if the Rotation property is set to 0 or 0.00 Exiftool will give me a warning, "Not a floating point number in MWG RegionStruct Rotation"

Command:
-RegionInfo={ AppliedToDimensions={ H=3912, W=5240, Unit=pixel }, RegionList=[{ Area={ H=0.12267, W=0.092, X=0.0435, Y=0.52267, Unit=normalized  }, Name=Testperson, Type=Face, Rotation=0.00 }] }
The same error occurs with other values like 0 or 0.01 ect.
If I remove Rotation from the command it will update fine.
How can the rotation set properly?

Thanks for any clarification!

Phil Harvey

Read point number 4 in the Structure serialization documentation -- you can't have extra whitespace after a string value.  (I know, maybe misleading, but the number is counts as a string.)

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