ExifTool Forum

ExifTool => Newbies => Topic started by: berliner_ffm on September 03, 2022, 05:25:29 PM

Title: Trying to write RegionInfo via stay_open session
Post by: berliner_ffm on September 03, 2022, 05:25:29 PM
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!
Title: Re: Trying to write RegionInfo via stay_open session
Post by: Phil Harvey on September 04, 2022, 09:18:20 PM
Read point number 4 in the Structure serialization documentation (https://exiftool.org/struct.html#Serialize) -- you can't have extra whitespace after a string value.  (I know, maybe misleading, but the number is counts as a string.)

- Phil