ExifTool Forum

ExifTool => Developers => Topic started by: sebutzu on January 04, 2025, 12:53:56 PM

Title: MWG RegionInfo vs Rotation (info + sample photos)
Post by: sebutzu on January 04, 2025, 12:53:56 PM
Anyone knows if in MWG RegionInfo the AppliedToDimensions, and the X, Y, W, H are related to the image before Rotation, or after?
It seems to be before rotation, but I am not sure.
Does anyone has some sample photos that have MWG RegionInfo data, and have different rotations?
Any apps that are known to use the MWG Standard in the right way?
Thanks!
Title: Re: MWG RegionInfo vs Rotation (info + sample photos)
Post by: StarGeek on January 04, 2025, 06:16:55 PM
The old Google Picasa and Photools Imatch both write it correctly, or at least seem too because the resulting files showed up correctly in both of them. I would guess Lightroom and DigiKam also write it correctly.

Here are a couple images, with and without rotation, with embedded regions.

C:\>exiftool -G1 -a -s -imagesize -RegionApplied* Y:\!temp\x\y\Rotation_test\
======== Y:/!temp/x/y/Rotation_test/George_Washington_No_Rotation.jpg
[Composite]     ImageSize                       : 1200x1456
[XMP-mwg-rs]    RegionAppliedToDimensionsH      : 1456.000000
[XMP-mwg-rs]    RegionAppliedToDimensionsUnit   : pixel
[XMP-mwg-rs]    RegionAppliedToDimensionsW      : 1200.000000
======== Y:/!temp/x/y/Rotation_test/George_Washington_With_Rotation.jpg
[Composite]     ImageSize                       : 1456x1200
[XMP-mwg-rs]    RegionAppliedToDimensionsH      : 1200.000000
[XMP-mwg-rs]    RegionAppliedToDimensionsUnit   : pixel
[XMP-mwg-rs]    RegionAppliedToDimensionsW      : 1456.000000