Bug 384086 - Rotation of some images (JPEG, by Samsung S5 smartphone) during import is incorrect
Summary: Rotation of some images (JPEG, by Samsung S5 smartphone) during import is inc...
Status: CONFIRMED
Alias: None
Product: digikam
Classification: Applications
Component: Import-PostProcessing (show other bugs)
Version: 8.1.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-27 20:51 UTC by Jens
Modified: 2023-04-30 10:00 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot example (46.12 KB, image/jpeg)
2017-08-27 20:51 UTC, Jens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens 2017-08-27 20:51:26 UTC
Created attachment 107552 [details]
screenshot example

Images during import preview are not rotated correctly. Both rotations are incorrect, however this might be the camera (the main view should be correct, the thumbnail is incorrect).

See attachment. Using Digikam 5.6.0 http://commits.kde.org/digikam/8ef66e27581dbe093df346525b11d02d953ec009.
Comment 1 Jens 2017-08-27 20:52:21 UTC
Also, the rotational difference is not always 90°, sometimes it is 180° too.
Comment 2 Maik Qualmann 2017-08-29 18:46:37 UTC
Can you provide two test images with and without the rotate problem?

Maik
Comment 3 Jens 2017-08-29 19:08:38 UTC
Privately to your email, yes. In BKO, no. Would that be OK?
Comment 4 Maik Qualmann 2017-08-29 19:15:36 UTC
Yes thats OK.

Maik
Comment 5 caulier.gilles 2020-08-04 08:24:03 UTC
digiKam 7.0.0 stable release is now published:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Best Regards

Gilles Caulier
Comment 6 caulier.gilles 2022-01-10 11:30:32 UTC
Jens,

What's about this file using current 7.5.0 pre-release bundle available here :

https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier
Comment 7 Jens 2022-01-10 22:08:54 UTC
I sent the original image which provoked the bug to your email.
I cannot reproduce this with current smartphone images, but this file still behaves like originally reported.
Comment 8 Maik Qualmann 2022-01-11 06:52:18 UTC
Thanks for the test image. The problem is clear in the import tool, there is currently no code that aligns the thumbnails. This is also due to the fact that, depending on the driver (GPhoto2) used and the settings for reading metadata, there is simply no information available about the orientation of the image.

Maik
Comment 9 Jens 2022-01-23 13:28:39 UTC
So is this a WONTFIX bug, or is there something we can do about it?
It is confusing to see two different rotations while importing.

A thought: do we really need to load the full image while importing? This has always lagged behind on my computer (I never see all images flickering by, only about every fourth or so), vidoes autostart playing and you suddenly hear the sound while the video never shows, and there is really no informational benefit to just loading the thumbnails.
Maybe it is better and easier to just show thumbnails while importing?
Comment 10 caulier.gilles 2022-01-23 14:01:49 UTC
Hi Jens,

This can be fixed depending of the metadata available for camera items.
As Maik said it's depend of camera driver (Gphoto2 for example provide only a restricted metadata, and when it's done, it's depend of camera model).
It's depend also of the metadata handling option for the UMS driver. If this option is enabled, Exif will be available and the thumbs can be rotated. If this option is not enabled, nothing will happen.

To add code to rotate thumbnails is not a problem. The problem is the availability of orientation flag from Exif.

Gilles Caulier
Comment 11 caulier.gilles 2023-04-24 03:36:28 UTC
@Jens,

digiKam 8.0.0 is out. Problem still valid with this release ?

Best regards

Gilles Caulier
Comment 12 Jens 2023-04-30 09:18:27 UTC
I cannot say, do you still have the images I sent as an example?
I don't have the originals any more.
Comment 13 caulier.gilles 2023-04-30 09:25:48 UTC
I never receive the sample files. Perhaps Maik has the data somewhere in a mail archive.

Gilles
Comment 14 Maik Qualmann 2023-04-30 10:00:02 UTC
The problem persists because we are not doing any rotation in the import tool. I plan to implement it when metadata option is enabled.

Maik