Summary: | digikam corrupts MPO (3D pictures produced by the Fujifilm W3 camera) files when attempting to rotate them during import | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Vadim <kde> |
Component: | Import-PostProcessing | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | critical | CC: | caulier.gilles, smit.meh |
Priority: | NOR | ||
Version: | 3.0.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/digikam/f5ed9bdcf6729fdbdc15f1beecd61b8d0856a5b0 | Version Fixed In: | 3.0.0 |
Sentry Crash Report: |
Description
Vadim
2012-09-23 17:24:54 UTC
This is something new about MPO files type... We must ignore this format in rotation code. Very easy... https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/libs/jpegutils/jpegutils.cpp#L668 Note : to be homogeneous, some others code need to be patched in this way : https://projects.kde.org/projects/extragear/graphics/kipi-plugins/repository/revisions/master/entry/jpeglossless/plugin/utils.cpp#L197 Smit, it's an easy bug report... Did you manage it ? Gilles Caulier Hi Gilles Just to be sure, the function isJpeg should return false, if it sees MPO files, correct? Mimetype of an MPO file says JPEG only. I will get the extension from the filename. Is that fine? Or should I do anything else? Smit >Just to be sure, the function isJpeg should return false, if it sees MPO files, correct? Yes. >Mimetype of an MPO file says JPEG only. I will get the extension from the filename. Is that fine? Or should I do anything else? yes. Look how it's do in libkexiv2 for ex. : https://projects.kde.org/projects/kde/kdegraphics/libs/libkexiv2/repository/revisions/master/entry/libkexiv2/kexiv2_p.cpp#L105 ... we use this way to check if Raw file extension are supported in writing mode... Gilles Caulier Git commit 2dde7e718f98db683d9c255bee4093302ca21d73 by Smit Mehta. Committed on 25/09/2012 at 14:04. Pushed by smitmehta into branch 'master'. Adding .MPO file as an exception. Its a 3D extension of JPEG which is not supposed to be rotated. M +14 -1 jpeglossless/plugin/utils.cpp http://commits.kde.org/kipi-plugins/2dde7e718f98db683d9c255bee4093302ca21d73 Git commit f5ed9bdcf6729fdbdc15f1beecd61b8d0856a5b0 by Smit Mehta. Committed on 25/09/2012 at 14:06. Pushed by smitmehta into branch 'master'. Adding MPO format as an exception. It is a 3D extension of jpeg which is not supposed to be rotated. M +7 -2 libs/jpegutils/jpegutils.cpp http://commits.kde.org/digikam/f5ed9bdcf6729fdbdc15f1beecd61b8d0856a5b0 |