Portrait images exported with darktable from raw files tagged in digiKam (.xmp) end up with the wrong orientation. Somehow the digiKam touched .xmp plays badly with darktable. The raw files have the correct orientation in darktable and the tags from digiKam are imported. The problem only occurs with exported jpg files.
Has anyone else had this problem?
The problem lies somewhere between darktable and digiKam but I posted in the darktable forum as the files look correct until exported from darktable.
I can’t provide examples atm (on phone) but will if needed. It has been like this for a while I stopped using digiKam because of it. Wanted to make it work due to lots of people to tag.
So what appears to happen is that the xmp.tiff.orientation tag is copied from the xmp sidecar into the jpg whilst the exif.image.orientation tag is set at export to top,left resulting in a jpeg with dual orientation tags. Depending on the viewer the image will be shown as landscape or portrait.
Note that the camera used in the example produces “native” DNG’s they are not the result of a conversion.
Yes, it does, i.e. both your pic and the one from digiKam image orientation when exporting from darktable - #4 by nosle are shown as portrait. Didn’t check that before, wasn’t following too closely…
I am running a development version of digikam, but I am not aware of any changes in that regard since 5.9.0 (which is no guarantee).
That indicates that the original problem isn’t reproducible.
I guess I’ll just push the change and @nosle can tell us if it helped when he is back.
correct? The keywords being in the file suggests you did follow the above procedure. So now I’m stumped
I tried with another computer using darktable just now and my file contains the following exif
So dual tags with different orientations. Hence shows landscape in Geeqie.
The file you uploaded shows the following exif according to Geeqie
So only the Exif.Image.Orientation tag indeed suggesting you get different results than I do. This is the exiftool output from the image I produced following the outline
$ exiftool -Orientation -a fdb337acaa8cacc0d77cdcd179c40bf7f09d71b8.jpg
Orientation : Horizontal (normal)
If i remember correctly Geeqie uses exiv2 so testing in both Geeqie and exiftool should cover any exif tool errors. The attached file is what my workflow produces for me.
Will download to see if the upload process alters exif.
Edit: nope the above image still shows landscape in Geeqie while yours don’t. Perhaps there’s a setting somewhere.
Wait, I thought we were talking about digikam? I just opened the two files in geeqie and indeed @houz’ one is in portrait, while @nosle’s is in landscape orientation.
There also seem to be MakerNotes that are not yet fixed by houz’ change (exiftool -a -G *filename* | grep -i orient):
So I conclude that the image is at least better than the original version and will push my changes. We can still remove those LevelInfo things when we find that they are wrong.
Edit: I already pushed them a while ago. I am getting old.