Bug 108683 - Auto rotation using EXIF works wrong
Summary: Auto rotation using EXIF works wrong
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Bqm-Rotate (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-07 10:06 UTC by Darek Borkowski
Modified: 2022-01-19 03:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0


Attachments
Wrongly rotated image (714.90 KB, image/jpeg)
2005-07-25 22:14 UTC, Stephan van den Akker
Details
Original image (not auto-rotated) (700.10 KB, image/jpeg)
2005-07-26 19:46 UTC, Stephan van den Akker
Details
I haven't rotated this image yet. I'm going to try, but every photo I tried has gos wrong results. (174.71 KB, image/jpeg)
2005-07-31 13:19 UTC, Jose
Details
Image that is rotated too much the first time (423.97 KB, image/jpeg)
2005-08-01 22:51 UTC, Stephan van den Akker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darek Borkowski 2005-07-07 10:06:33 UTC
Version:           0.7.3 beta 2 (using KDE KDE 3.4.0)
Installed from:    SuSE RPMs

I selected all images in one album then selected Auto Rotation using EXIF information. Some of images were rotated correctly, some not i.e they were rotated 180 degrees or in other words upside down. Some which were originally in proper position become rotated 90 degrees. I have to manually correct this. I have orientation sensor in Canon EOS 300D.
Comment 1 Renchi Raju 2005-07-10 22:29:05 UTC
please provide a sample image which you think is not auto-rotated correctly
Comment 2 Stephan van den Akker 2005-07-25 22:06:39 UTC
Hi Darek, Renchi,

I believe I have the same problem!

Using:
- gcc 3.3.4 (SuSE 9.2)
- KDE 3.3.0 (SuSE 9.2)
- digikam-0.7.3 (sourceforge tarball)
- digikamimageplugins-0.7.3 (sourceforge tarball)
- kipi-plugins-0.1.0-beta2 (sourceforge tarball)
- libkexif-0.2.1 (sourceforge tarball)
- libkipi-0.1.1 (sourceforge tarball)
- Canon EOS 300D

The pictures and thumbnails are shown correctly if I select "Rotate images and thumbnails according to EXIF tag" under Settings|Configure Digikam|Embedded Info.
The pictures and thumbnails are rotated correctly if I select "Automatically rotate/flip using camera-provided information (EXIF)" under Camera|Canon EOS 300D (normal mode)|Advanced.

But:
Every picture and thumbnail is rotated 270 degrees too much if I select Image|Auto Rotate/Flip Using Exif Information.

I will attach an example of a incorrectly rotated picture.
Comment 3 Stephan van den Akker 2005-07-25 22:14:57 UTC
Created attachment 11924 [details]
Wrongly rotated image

Image was resized to fit in Bug Tracking System.
Comment 4 Renchi Raju 2005-07-26 02:17:28 UTC
stephan, the image you attached has already been rotated. do you have an example which has not yet been rotated, but will be rotated incorrectly? to get this, you will have to copy the images to a temporary directory and auto-rotate them and compare with the original images
Comment 5 Stephan van den Akker 2005-07-26 19:46:12 UTC
Created attachment 11942 [details]
Original image (not auto-rotated)

Scaled to fit in Bug Tracking System
Comment 6 Renchi Raju 2005-07-26 21:11:47 UTC
stephan, the new image you attached has the exif orientation set to Top-Left (which means no rotation), probably reset during resize. could you send me the original image directly by email
Comment 7 Stephan van den Akker 2005-07-26 21:47:51 UTC
Hi Renchi,

Here it is, the full 4.7 MB.....

Although my point is: This image should not be rotated by the Auto rotation function, but it was!
The result is in the first attachment of this bugreport (the resizing was done afterwards). This should not happen. The Auto rotation function should see that the image doesn't need rotating.

Greetings,

Stephan van den Akker
Comment 8 Jose 2005-07-31 13:16:18 UTC
Hi, I have the same problem. None of my photos are rotated correctly. All of them are left upside-down or in a 90º position when they doesn't need to be rotated.
I attach a photo that I think has not been rotated. It was passed to disk on Windows, I don't know if it touches something that I don't know.
Comment 9 Jose 2005-07-31 13:19:18 UTC
Created attachment 12011 [details]
I haven't rotated this image yet. I'm going to try, but every photo I tried has gos wrong results.
Comment 10 Jose 2005-07-31 13:20:23 UTC
As I gessed the image was rotated 180º so it's still in the wrong position.
Comment 11 Stephan van den Akker 2005-08-01 22:50:11 UTC
Just noticed that "Rotate" from the context menu doesn't rotate correctly as well. The next attached image rotates 90 degrees too much, but just the first time it is rotated. The next time it rotates correctly the way I want. 

The "Rotate" problem is probably related to the "Auto rotate" bug.

EOS 300D problem?

Happy bug hunting,

Stephan van den Akker

Comment 12 Stephan van den Akker 2005-08-01 22:51:28 UTC
Created attachment 12032 [details]
Image that is rotated too much the first time
Comment 13 Renchi Raju 2005-08-17 11:08:55 UTC
This has been fixed. You need svn versions of kipi-plugins (and digikam svn if you are using digikam)
Comment 14 Renchi Raju 2005-08-17 11:11:23 UTC
*** Bug 106936 has been marked as a duplicate of this bug. ***