Summary: | TIF files appear not in correct orientation in Piwigo | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Dr. Christian Riede <nospam.kde> |
Component: | Plugin-WebService-Piwigo | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, frederic.coiffier |
Priority: | NOR | ||
Version: | 4.10.0 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kipi-plugins/17a7be96da4c005f3e2b5caf3038b3104931561c | Version Fixed In: | 5.4.0 |
Sentry Crash Report: |
Description
Dr. Christian Riede
2013-12-28 12:40:46 UTC
Problem still reproducible with kipi-plugins 4.9.0 ? Gilles Caulier Christian, Problem still reproducible with kipi-plugins 4.10.0 ? Gilles Caulier I haven't enough information about parameters used with the piwigo exporter but I think that I reproduce the problem. If "Resize photos before uploading" is NOT CHECKED : * The TIFF file is uploaded but cannot be displayed by Piwigo : Piwigo bug as I'm not sure it is able to display 16-bits TIFFs If "Resize photos before uploading" is CHECKED : * The Piwigo exporter converts the TIFF in JPEG (with a rescaling) but the EXIF Orientation seems not used during the conversion. The conversion is done with a QImage : QImage image; ... image.load(mediaPath); ... image.save(m_path, "JPEG", quality); I don't know if QImage can convert a TIFF to JPEG by preserving the EXIF Orientation. No, QImage cannot do it. But in libkipiplugins, we can use KPMetadata to transfert metadata from TIFF to JPEG. It'sq already used in some others kipi tools... Gilles Caulier The code relevant of photo management is located in this method : https://projects.kde.org/projects/extragear/graphics/kipi-plugins/repository/revisions/master/entry/piwigoexport/piwigotalker.cpp#L170 And as you can see here : https://projects.kde.org/projects/extragear/graphics/kipi-plugins/repository/revisions/master/entry/piwigoexport/piwigotalker.cpp#L227 Exif metadata are preserved while conversion/re-sizing of image... Gilles Caulier Git commit 17a7be96da4c005f3e2b5caf3038b3104931561c by Maik Qualmann. Committed on 01/01/2017 at 22:19. Pushed by mqualmann into branch 'master'. fix exif orientation when exporting to web services Related: bug 374242, bug 374409 FIXED-IN: 5.4.0 M +4 -1 NEWS M +1 -0 dropbox/dbtalker.cpp M +1 -0 facebook/fbwindow.cpp M +1 -0 flickr/flickrtalker.cpp M +1 -0 googleservices/gdtalker.cpp M +2 -0 googleservices/gptalker.cpp M +1 -0 mediawiki/wmwindow.cpp M +2 -1 piwigo/piwigotalker.cpp M +1 -0 rajce/rajcesession.cpp M +1 -0 smug/smugwindow.cpp M +1 -0 yandexfotki/yfwindow.cpp https://commits.kde.org/kipi-plugins/17a7be96da4c005f3e2b5caf3038b3104931561c |