Bug 306482

Summary: Wrong rotation for images after Piwigo Export
Product: [Applications] digikam Reporter: bugs
Component: Plugin-WebService-PiwigoAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: caulier.gilles, frederic.coiffier
Priority: NOR    
Version: 2.8.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: All   
Latest Commit: Version Fixed In: 3.1.0
Sentry Crash Report:

Description bugs 2012-09-09 08:21:46 UTC
After upload several images are displayed with the wrong rotation in Piwigo. I think the EXIF rotation information is lost during resize within digikam.


Reproducible: Always

Steps to Reproduce:
1. Select multiple images, some portrait, some landscape, which are _not_ rotated during import in digikam 
2. Display in digikam is correct
3. Upload to Piwigo, check the resize checkbox

Actual Results:  
Images are not rotated in piwigo

Expected Results:  
Images should be rotated in piwigo
Comment 1 Frédéric COIFFIER 2013-02-27 20:20:31 UTC
I've just tried to reproduce the problem and I didn't succeed with Digikam 3.0 (+ KIPI plugins 3.0) and Piwigo 2.4.7.

In fact, the rotation information is stored in EXIF. The Piwigo export plugin shouldn't remove this information and Piwigo should use it.
So, it can be a bug in Piwigo or in the export plugin.
Comment 2 bugs 2013-02-28 09:07:16 UTC
Unfortunately I can't test it in the next time. IIRC it was related to the "resize" checkbox, it seemed the EXIF got lost when digikam rescaled the images locally before uploading. But this is all from memory so if it is not reproducible with the current versions we can close this bug.
Comment 3 Frédéric COIFFIER 2013-02-28 09:36:49 UTC
Yes, I agree. I had a doubt about a possible EXIF loss during the resizing.
I've just downloaded the resized image from my Piwigo webhost. The image was correctly resized and still contains EXIF info :

...
Camera Orientation              : Rotate 270 CW
...

So, from the Piwigo plugin side, everything seems correct. So, maybe, this problem was corrected from the Pwigio side itself.