Bug 128465

Summary: some JPEG images are rendered incorrectly in all KDE software
Product: [I don't know] kde Reporter: Technologov <al4321>
Component: generalAssignee: Stephan Kulow <coolo>
Status: RESOLVED WORKSFORME    
Severity: normal CC: mboquien
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: The buggy JPEG that causes problems in KDE.
The original PDF file.

Description Technologov 2006-06-01 22:58:49 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Ubuntu Packages
OS:                Linux

I have some strange JPEG picture that is rendered incorrectly in *all* KDE software - KolourPaint/Gwenview/Konqueror/.... (with exception of Krita which works 100% correct) - it makes me feel that there is some problem in KDE libs/base/core.

The strange JPEG originate from a PDF file. (and, perhaps has CMYK colorspace) 
This bugs inverts Red & Blue channels.

=============================================================================
GNOME software (GIMP 2.2) & ACDSee classic renders that JPEG almost correctly (small glitch/color mistake).

Software that reads the files 100% correctly: (PDF or JPEG)

1) Adobe Acrobat 7 - PDF
2) MS Windows XP Paint (strange for MS :) - JPEG
3) KDE Krita 1.5.0 - JPEG

Tested on: Windows XP SP2, Kubuntu 6.06 Dapper w/ KDE 3.5.2, SUSE Linux 10.0 w/ KDE 3.4.2 - bugs in KDE detected in both 3.4.2 and 3.5.2 versions.
Comment 1 Technologov 2006-06-01 23:06:47 UTC
Created attachment 16411 [details]
The buggy JPEG that causes problems in KDE.

I think it is a non-standard CMYK JPEG. (instead of RGB)
NOTE: compressed into 7-zip - because it takes over 1MB and not works with KDE
bugzilla otherwise. Use Ark to open it.
Comment 2 Technologov 2006-06-01 23:10:01 UTC
Created attachment 16412 [details]
The original PDF file.

Works correctly with Adobe Acrobat Reader 7.0.
 Almost correctly with the GIMP 2.2. w/ postscript plugin.
Comment 3 Technologov 2006-06-01 23:22:28 UTC
Alternativaley, the buggy JPEG image is available "as-is" (without 7-zip) to first few people that click below:
http://www.yousendit.com/transfer.php?action=download&ufid=64DED58D16614923

NOTE: to correctly see it use:
MS Paint XP
Adobe Photoshop 9 CS2
KDE Krita 1.5.0
Comment 4 Rohan Dhruva 2006-06-04 21:19:30 UTC
Problem confirmed to be occuring on debian sid with kde 3.5.5 too. Although if kde uses libjpeg I don't see how its a kde problem .. :)
Comment 5 Rohan Dhruva 2006-06-04 21:22:11 UTC
Sorry, I meant kde 3.5.3, really now, I wish someone would give me a 3.5.5 pre release, but let me not change the topic here ;)
Comment 6 Technologov 2006-06-04 21:25:03 UTC
update:
GNOME is affected too by similar bug - but not exactly the same.

see:
http://bugzilla.gnome.org/show_bug.cgi?id=343667

So it points us to libjpeg bug - but where is libjpeg bugzilla ? plz help !
Comment 7 Martin Koller 2006-11-12 23:04:25 UTC
http://www.ijg.org/  or maybe you contact the authors (should be in the source packages or documentation)
If you're sure that it's a libjpeg problem, please close this report.
Thanks.
Comment 8 Martin Koller 2007-07-23 19:30:42 UTC
I now made a small Qt only testprogram. I found this to be a Qt3 bug, as on the same machine the same app compiled with Qt4 and the same libjpg shows a correct result (altough it's interesting that KDE3 can show the correct image in the preview area of the "save as" dialog...)
Comment 9 Médéric Boquien 2008-11-09 03:43:23 UTC
Hello,

In KDE SVN trunk r881398 i cannot reproduce this bug anymore.

Thanks.