Summary: | Wrong image rotation when extracting face thumbs | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Roberto <betokella> |
Component: | Faces-Recognition | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED NOT A BUG | ||
Severity: | minor | CC: | caulier.gilles, metzpinguin |
Priority: | NOR | ||
Version: | 7.1.0 | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | Version Fixed In: | 7.2.0 | |
Sentry Crash Report: |
Description
Roberto
2020-11-12 16:16:00 UTC
It still reproducible using current 7.2.0-betaƩ installer for Windows ? https://files.kde.org/digikam/ Gilles Caulier I don't know if his problem is he is extracting an invalid / old face thumbnail. Or whether it is the bug that if there is a facial thumbnail already with the coordinates, no new and correct one is created. The face thumbnail in the DB is found using a path + rectangle identifier. Maik (In reply to Maik Qualmann from comment #2) > I don't know if his problem is he is extracting an invalid / old face > thumbnail. Or whether it is the bug that if there is a facial thumbnail > already with the coordinates, no new and correct one is created. The face > thumbnail in the DB is found using a path + rectangle identifier. > > Maik I am not getting the thumbs from the DB (could not fathom how...). I am getting the image paths and using ImageMagic to extract the rectangle indicated by the coordinates in ImageTagProperties. /Roberto But that's not a bug in digiKam. You have to understand that digiKam always stores the face coordinates internally with the aligned image. When writing metadata to the image, as is the standard in many programs, the face coordinates for the unaligned image are then saved. So you have to read the orientation flag in the DB and rotate the image accordingly with ImageMagick. Maik (In reply to Maik Qualmann from comment #4) > But that's not a bug in digiKam. You have to understand that digiKam always > stores the face coordinates internally with the aligned image. When writing > metadata to the image, as is the standard in many programs, the face > coordinates for the unaligned image are then saved. So you have to read the > orientation flag in the DB and rotate the image accordingly with ImageMagick. > > Maik All cases are fixed after I rotate the images back and forth and extract the thumbs again, without changing any option in ImageMagic... If you rotate the images back and forth in digiKam, they are actually rotated losslessly depending on the setting in digiKam setup and the orientation flag is then "normal". It is clear that the face coordinates then match the image. Maik Hummm... You mean I indirectly "fixed" the face coordinates so it
matches the image and creating the thumbs in ImageMagick now works?
Intriguing only a (comparably) few images are affected. Also intriguing
the behavior in digiKam when you rotate the image back and forth and the
thumbnail flips in random directions first before rotation according to
the image... It doesn't occur with "the correct" images.
On 2020-11-12 16:29, Maik Qualmann wrote:
> https://bugs.kde.org/show_bug.cgi?id=429021
>
> Maik Qualmann <metzpinguin@gmail.com> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|REPORTED |RESOLVED
> Resolution|--- |NOT A BUG
> Version Fixed In| |7.2.0
>
> --- Comment #6 from Maik Qualmann <metzpinguin@gmail.com> ---
> If you rotate the images back and forth in digiKam, they are actually rotated
> losslessly depending on the setting in digiKam setup and the orientation flag
> is then "normal". It is clear that the face coordinates then match the image.
>
> Maik
>
/Roberto
(In reply to Beto Kella from comment #7) > Hummm... You mean I indirectly "fixed" the face coordinates so it > matches the image and creating the thumbs in ImageMagick now works? > Intriguing only a (comparably) few images are affected. Also intriguing > the behavior in digiKam when you rotate the image back and forth and the > thumbnail flips in random directions first before rotation according to > the image... It doesn't occur with "the correct" images. > > On 2020-11-12 16:29, Maik Qualmann wrote: > > https://bugs.kde.org/show_bug.cgi?id=429021 > > > > Maik Qualmann <metzpinguin@gmail.com> changed: > > > > What |Removed |Added > > ---------------------------------------------------------------------------- > > Status|REPORTED |RESOLVED > > Resolution|--- |NOT A BUG > > Version Fixed In| |7.2.0 > > > > --- Comment #6 from Maik Qualmann <metzpinguin@gmail.com> --- > > If you rotate the images back and forth in digiKam, they are actually rotated > > losslessly depending on the setting in digiKam setup and the orientation flag > > is then "normal". It is clear that the face coordinates then match the image. > > > > Maik > > > > /Roberto Adding -auto-orient option to ImageMagic did the trick. Sorry for opening as a bug in digiKam. The behavior described above created bias. |