Version: 1.11.3 (using 4.2.3 (KDE 4.2.3), Kubuntu packages) Compiler: cc OS: Linux (x86_64) release 2.6.28-11-generic Sometimes I recognized that kmail displays JPEGs with false colors. Now I got again a jpeg which is shown in orange instead of blue. I will attach a file in my next post.
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.