Bug: Incorrect export of face regions to JPG

Hi,

I also want to adress this issue. This also applies to RAW files containing tagged faces passed by Lightroom (and other SW like iMatch,…) to DXO Photolab.
Those follow the standard of the MWG (Metadata Working Group) for Regions Tags. See: MWG Regions Tags

The region (face) is marked by x/y coordinate (top left is 0, 0 - bottom right is 1, 1) and size of the rectange.

The problem and face region tag with DXO Photolab occurs now:

  1. on ALL images with portrait orientation (Photolab is exporting a rotated version and sets the orientation flag from 270CW to horizontal)
  2. when cropping an image

For example this is how the region tag content look like on a RAW (portrait orientation) passed to DXO Photolab:

[XMP-mwg-rs]    Region Applied To Dimensions H  : 2400.000000
[XMP-mwg-rs]    Region Applied To Dimensions Unit: pixel
[XMP-mwg-rs]    Region Applied To Dimensions W  : 3200.000000
[XMP-mwg-rs]    Region Area H                   : 0.296667
[XMP-mwg-rs]    Region Area Unit                : normalized
[XMP-mwg-rs]    Region Area W                   : 0.223000
[XMP-mwg-rs]    Region Area X                   : 0.572000
[XMP-mwg-rs]    Region Area Y                   : 0.603667
[XMP-mwg-rs]    Region Name                     : Persons Name
[XMP-mwg-rs]    Region Type                     : Face
...
[XMP-tiff]      Orientation                     : Rotate 270 CW
[IFD0]          Orientation                     : Rotate 270 CW

And this how the metadata looks like in the JPG exported by DXO Photolab:

[XMP-mwg-rs]    Region Applied To Dimensions H  : 2400.000000
[XMP-mwg-rs]    Region Applied To Dimensions Unit: pixel
[XMP-mwg-rs]    Region Applied To Dimensions W  : 3200.000000
[XMP-mwg-rs]    Region Area H                   : 0.296667
[XMP-mwg-rs]    Region Area Unit                : normalized
[XMP-mwg-rs]    Region Area W                   : 0.223000
[XMP-mwg-rs]    Region Area X                   : 0.572000
[XMP-mwg-rs]    Region Area Y                   : 0.603667
[XMP-mwg-rs]    Region Name                     : Persons Name
[XMP-mwg-rs]    Region Type                     : Face

[XMP-tiff]      Orientation                     : Horizontal (normal)
[IFD0]          Orientation                     : Horizontal (normal)

So DXO Photolab is rotating the image, but does not change the coordinates of the MWG region tag accordingly. Because of this the face tag is now in wrong possition after it was processed by DXO Photolab.

Similar applies to cropping an image, where the relative position of the face region also changes and should be adjusted by DXO in the metadata.

1 Like