Summary: | JPEG image gets displayed in wrong colors | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Andreas Pietzowski <andreas> |
Component: | khtml image part | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | brendon, florian.reinhard |
Priority: | NOR | Keywords: | testcase, triaged |
Version: | 0.0.1 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
JEPG shows wrong colors in KMail
testcase tar'ed up |
Description
Andreas Pietzowski
2009-05-18 21:16:21 UTC
Created attachment 33818 [details]
JEPG shows wrong colors in KMail
Konqueror and GIMP displays it correct in blue, KMail shows it orange with a kind of layering-problem. Does this JPEG have some "layers"? Anyways, it should be displayed correct ;-)
This is a CMYK jpeg image, Qt loads it correctly, but KHTML part uses its own jpeg image loader. Reassigning. Showing directly the image works, but not if embedded inside a document. To reproduce in Konqueror, I used this simple document: <HTML> <body> <p>Text</p> <img src="logo_final_blau.jpg" /> </body> </HTML> still present in 4.2.91 with qt 4.5.1 Created attachment 34681 [details]
testcase tar'ed up
SVN commit 1047308 by cfeck: Fix loading of CMYK jpeg images BUG: 135789 BUG: 189414 BUG: 193152 M +13 -0 jpegloader.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1047308 Hi, I'm trying to understand this code fix. Where is the colourspace conversion from CMY to RGB? I see where the K part is used, but as best I can tell, the C, M, and Y components (after normalisation by the K component) are being fed into the R, G, and B inputs of the qRgb object. I surmise that jpeglib does some conversions, but not that. So this fix looks incomplete. Am I missing something? (Sorry if I am.) Peace, Brendon Brendon, the code comes from digikam. I checked Qt, and it basically has the same code. I tried all test images I could get from the three bug reports mentioned in the commit, and all display with correct colors. If you have a JPEG image that displays correctly elsewhere, but not in Konqueror, please reopen. |