[digiKam-users] Change Raw file orientation using metadata

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[digiKam-users] Change Raw file orientation using metadata

Photonoxx
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

--
Nicolas Boulesteix - Chasseur de Lueurs - http://www.photonoxx.fr
Reply | Threaded
Open this post in threaded view
|

Re: Change Raw file orientation using metadata

Maik Qualmann
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




Reply | Threaded
Open this post in threaded view
|

Re: Change Raw file orientation using metadata

Photonoxx
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 <[hidden email]> 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






--
Nicolas Boulesteix - Chasseur de Lueurs - http://www.photonoxx.fr
Reply | Threaded
Open this post in threaded view
|

Re: Change Raw file orientation using metadata

Maik Qualmann
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 <[hidden email]> 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




Reply | Threaded
Open this post in threaded view
|

Re: Change Raw file orientation using metadata

Maik Qualmann
A test with Darktable shows that it also does not store the orientation flag
in the XMP file. Darktable creates a history that restores the rotation. But
that is also incompatible with other programs.

Maik

Am Montag, 5. August 2019, 12:33:12 CEST schrieben Sie:

> 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 <[hidden email]> 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




Reply | Threaded
Open this post in threaded view
|

Re: Change Raw file orientation using metadata

Photonoxx
Hi,
Indeed, that Digikam store or not the orientation flag in the metadata is, may be, not the main thing, but, the fact you can't adjust orientation in Digikam on a Raw (just to see it in the right orientation) and then applying some change in the metadata and keeping this orientation is wrong for me.

For this, orientation flag could write in the metadata, even if it is inconsistent for raw file but Digikam should be able to read this flag again only for displaying preview and thumbnail (and even if the DB is lost), or it should be told to digikam to not update orientation from metadata if some adjustement was made in the DB.


Le lun. 5 août 2019 à 12:42, Maik Qualmann <[hidden email]> a écrit :
A test with Darktable shows that it also does not store the orientation flag
in the XMP file. Darktable creates a history that restores the rotation. But
that is also incompatible with other programs.

Maik

Am Montag, 5. August 2019, 12:33:12 CEST schrieben Sie:
> 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 <[hidden email]> 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






--
Nicolas Boulesteix - Chasseur de Lueurs - http://www.photonoxx.fr