https://bugs.kde.org/show_bug.cgi?id=515664

            Bug ID: 515664
           Summary: Wrong Exif orientation in stored image files when auto
                    rotateing
    Classification: Applications
           Product: digikam
      Version First 8.8.0
       Reported In:
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Metadata-Orientation
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

This bug happens when auto rotating images according to their exif rotation
while using xmp-sidecars. It's triggered by importing images from
camera/storage or using Item/Rotate/Auto rotate.

Step to reproduce
1.) Configure Digikam as follows
  Metadata/Sidecars/Reading and Writing to Sidecars
    [x] Read from sidecar files
    [x] Write to sidecar files
       => Write to XMP sidecar only
  Metadata/Behavior/Reading and Writing Metadata
    [x] Use lazy synchronization
    [x] update filemod. timestamp ...
    [x] Rescan file...

2.) Import an image with exif orientation = 6 (CW)  
  (6 is just an example, the bug generally happens with orientations != 1)

- Image data is rotated according original exif rotation and image file is
saved 
- Exif data of saved image file still contains old - now invalid - orientation
  => Data inside the image is rotated to 1 (Normal)
  => New image is saved still with Exif orientation 6 (CW) 
- (only) the corresponding xmp File contains the now correct exif rotation
value 1 = normal

  result:
- Digikam still displays the image in correct orientation, either due to
caching or only evaluating only the xmp file  - to make digikam display the
image in the now wrong orientation, the .xmp has to be deleted and then the
metadata must be re-read from the image
- other image viewers which ignore the xmp file show the image rotated once
more => that's odd.

As a workaround, the wrong metadata can be easily fixed using
  exiftool -P  -n -Orientation=1  -overwrite_original  FILENAME.JPG

Version Info:
digiKam: 8.8.0
KDE Frameworks: 6.22.0
Qt: Using 6.10.1 and built against 6.10.1
openSUSE Tumbleweed (Xcb)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.17.9-1-default

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to