Summary: | exif-based rotated jpeg loaded incorrectly | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Thomas Zander <zander> |
Component: | File formats | Assignee: | Cyrille Berger <cberger> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
The image that does not load properly; canvas and pixels are rotated from each other.
non-rotated image; for comparison. |
Description
Thomas Zander
2006-04-03 03:00:28 UTC
Created attachment 15431 [details]
The image that does not load properly; canvas and pixels are rotated from each other.
Created attachment 15432 [details]
non-rotated image; for comparison.
To make clear what I meant with exif-rotated do a 'xdelta' diff on this file
and the rotated.jpg to find out there is only a 200bytes diff. I.e. the pixels
are not touched.
I though Cyrille had fixed this in svn? SVN commit 523052 by berger: fix interpretation of exif orientation M +2 -2 kis_jpeg_converter.cc --- branches/koffice/1.5/koffice/filters/krita/jpeg/kis_jpeg_converter.cc #523051:523052 @@ -247,6 +247,8 @@ } } + m_img->addLayer(layer.data(), m_img->rootLayer(), 0); + // Read exif informations kdDebug(41008) << "Looking for exif information" << endl; @@ -305,8 +307,6 @@ break; } - m_img->addLayer(layer.data(), m_img->rootLayer(), 0); - // Finish decompression jpeg_finish_decompress(&cinfo); jpeg_destroy_decompress(&cinfo); No, this isn't fixed in the current. 1.5 tree. Assigning to Cyrille. Fixed by upgrading my libjpeg |