[digiKam-users] Change Raw file orientation using metadata

Maik Qualmann metzpinguin at gmail.com
Mon Aug 5 11:33:12 BST 2019


It's true, "adjust exif orientation tag" write the orientation flag into the 
metadata. The behavior of both functions is inconsistent. Of course we can 
also allow the writing of the orientation flag on the rotation. I'll test how 
other programs (like Dartable) handle it. You have to understand that RAW 
files are very special. We usually get an aligned image from the RAW decoder. 
The thumbnail can be completely different aligned in the RAW.

Maik

Am Sonntag, 4. August 2019, 14:16:56 CEST schrieb Nicolas Boulesteix:
> Finally, there's still something wrong as rotate a RAW is not persistent if
> done with rotate icon or rotate from item menu or shift+ctrl+left/right
> shortcuts.
> 
> Using "ajust exif orientation tag" works, so, is there any chance the
> rotate tool could be used with RAW to change the exif orientation tag
> taking into account the initial value ? For example, applying a "left
> rotate" on a picture with exit orientation tag set to "rotated to the
> right", finally set the tag to "normal", or "rotate left" on a picture with
> "rotated to the left" tag result in a "rotated by 180°" value ?
> 
> Le dim. 4 août 2019 à 13:11, Maik Qualmann <metzpinguin at gmail.com> a écrit :
> > This is the comment in the code that we do not apply the orientation
> > metadata
> > after rotation to a RAW file:
> > 
> > // Setting the rotation flag on Raws with embedded JPEG is a mess
> > // Can apply to the RAW data, or to the embedded JPEG, or to both.
> > 
> > Maik
> > 
> > Am Sonntag, 4. August 2019, 12:46:48 CEST schrieb Nicolas Boulesteix:
> > > Hi,
> > > 
> > > I just notice a matter when I rotate my RAW (fuji RAF) file in the album
> > > view with DK 6.2 (but 6.1 too).
> > > 
> > > In deed, I use shortcut  shift+ctrl+left or right to change orientation
> > 
> > to
> > 
> > > the right or to the left. But if I change orientation this way, it seems
> > > nothing is written in metadata (in the sidecar) and if I change another
> > > metadata on the same file, for example if I just rate it, the
> > > orientation
> > > is reset and not as modified before rating.
> > > 
> > > If I use instead "ajust exif orientation tag", the problem doesn't
> > 
> > occur,
> > 
> > > rating the picture doesn't  reset orientation and the orientation tag is
> > > changed in metadata (in the sidecar file).
> > > 
> > > The matter doesn't occur with jpeg.
> > > 
> > > I don't know if there's some change, because I think, before, this
> > > behaviour didn't occur, 6.1 seems to have the same behaviour but I
> > > didn't
> > > notice it yet. I try on my previous workstation which still have DK 5.9,
> > > and there's not this matter.
> > > 
> > > Digikam is set as follow in the metadata setting rotate tab :
> > > 
> > > X Rotate by oinly setting a flag
> > > X Write flag to metadata if possible
> > > X Show image/thumbnail rotated according to orientation tag
> > > X Set orientation tag to normal after rotate/flip
> > > 
> > > Sidecar file are activated for readonly file.
> > > 
> > > I try to check/unckeck "set orientation tag to normal after
> > > rotate/flip",
> > > but it doesn't seem to change anything.
> > > 
> > > Any help is welcome
> > > 
> > > Nicolas







More information about the Digikam-users mailing list