Bug 161337 - Image rotation of converted RAW photos (portrait format) broken
Summary: Image rotation of converted RAW photos (portrait format) broken
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: BatchQueueManager-RAWProcessing (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-27 17:57 UTC by Dominic Battre
Modified: 2018-03-23 11:30 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.5.0


Attachments
screenshot of wrong rotated photo (113.22 KB, image/png)
2008-09-08 00:22 UTC, Dan Ohnesorg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominic Battre 2008-04-27 17:57:04 UTC
Version:           SVN Trunk (4/27/2008) (using KDE 4.0.3)
Installed from:    Gentoo Packages

If you convert the attached .CR2 file (portrait format) to JPG using Batch -> Batch RAW Converter (Save settings -> Output file format: JPEG), some things go wrong:

1) The orientation of the resulting image is wrong (landscape instead of portrait)

2) Image -> Rotate -> Right has no effect

However, if you execute Image -> Auto Rotate/Flig Using Exif Information and then Image -> Rotate -> Right the rotation is correct again.
Comment 1 caulier.gilles 2008-04-27 17:59:43 UTC
Dominic,

Please attach the CR2 file to this bugzilla entry to be able to test. Thanks in advance.

Gilles Caulier
Comment 2 caulier.gilles 2008-04-27 18:00:41 UTC
Also, which kipi-plugins version you use ? Last stable ?

Gilles Caulier
Comment 3 caulier.gilles 2008-04-27 18:02:00 UTC
Another question : which Exiv2 library you use ?

Gilles Caulier
Comment 4 Dominic Battre 2008-04-27 18:14:09 UTC
This is an example image: https://cit-server.cit.tu-berlin.de/~battre/IMG_0761.CR2

The bug is reproducible with Digikam trunk (0.9.4-beta4, 4/27/2008, revision 801723) with Kipi library 0.1.6 / KExiv2 0.1.7 / Exiv2 0.16 and Digikam 0.9.4-beta3 (Gentoo) with Kipi library 0.1.5 / KExiv2 0.1.6 / Exiv2 0.16.
Comment 5 Dan Ohnesorg 2008-09-08 00:21:26 UTC
Also i have found the same problem in today CVS version (2008-09-07). It is even not possible to fix the problem with auto rotate using exif data, becouse resulted photo is 180 degres rotated to right position.

The preview image is rotated OK, even image opened using kshowphoto has right orientation.
Comment 6 Dan Ohnesorg 2008-09-08 00:22:36 UTC
Created attachment 27300 [details]
screenshot of wrong rotated photo
Comment 7 Dan Ohnesorg 2008-09-08 00:39:33 UTC
Exif Orientation: 6
Exif Orientation: 6
Transforming with option 0 5
Exif orientation tag set to: 1
'/tmp/kde-dan' is TIFF based RAW file not yet supported. Metadata not saved.
Exif Orientation: 6
Exif Orientation: 6
Transforming with option 2 5
Exif orientation tag set to: 1
'/tmp/kde-dan' is TIFF based RAW file not yet supported. Metadata not saved.
Found dcraw version: 8.87

probably the interesting part of log. Also the conversion target is set to PNG not TIFF. There isn't the decoding command itself in log.
Comment 8 caulier.gilles 2008-12-08 09:10:35 UTC
Dominic,

This file still valid using digiKAm 0.9.4, kipi-plugins 0.1.6 and a recent version of Exiv2 library ?

Gilles Caulier
Comment 9 Dominic Battre 2008-12-08 14:14:23 UTC
The exact same problem persists with
digiKam 0.9.4
Kipi 0.1.6
KExiv2 0.1.7
Exiv2 0.17.1
Comment 10 Nicolas L. 2009-07-10 09:00:41 UTC
i just tried with the attached file and with kipi plugins from trunk and i can't reproduce the issue.

Can you test with at least kipi plugins 0.4.0 please ?
Comment 11 Dominic Battre 2009-07-10 09:36:55 UTC
Problem solved. Thanks a lot!