After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 61211 - Incorrect rendering of 4 channel JPEG file
Incorrect rendering of 4 channel JPEG file
Status: RESOLVED FIXED
Product: gdk-pixbuf
Classification: Platform
Component: general
git master
Other Linux
: Low major
: ---
Assigned To: gtk-bugs
Luis Villa
: 81123 100061 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-09-26 09:36 UTC by K.MacDonald
Modified: 2010-07-10 04:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Four channel JPEG file (57.87 KB, image/jpeg)
2001-09-26 16:08 UTC, K.MacDonald
  Details
patch (5.16 KB, patch)
2002-06-22 14:56 UTC, Matthias Clasen
none Details | Review

Description K.MacDonald 2001-09-26 09:36:09 UTC
This is a JPEG file created by Adobe Photoshop 3 and was received by one of
my users.  It displays with vertical lines throughout it in EOG, and
Nautilus and Mozilla.

It displays correctly (apart from colour balance) in Electric Eyes.

MS PhotoEditor 2000 displays it correctly, but MS PhotoEditor 97 can't
display anything.

The Gimp 1.2.x claims not to be able to handle JPEG files with four channels.
Comment 1 K.MacDonald 2001-09-26 16:08:10 UTC
Created attachment 5700 [details]
Four channel JPEG file
Comment 2 Luis Villa 2002-01-29 21:07:16 UTC
Marking down to Low mainly because (judging from the fact that 4
channel jpegs crashed evo 100% repeatably and we still got very few
reports about that) they aren't used very much.
Comment 3 Luis Villa 2002-01-29 21:15:56 UTC
Hey, guys. You're at only 6 open bugs, which is wonderful. AFAICT, all of these
would affect a GNOME2 port of EOG but I'm not an expert. In particular, if you
could go through the bugs I've marked as GNOME2 and remove that keyword from
bugs that aren't, it'd be greatly appreciated as we try to get everything
straightened out. Thanks!
[This sort-of-spam can be filtered out by searching on 'luis doing GNOME2 work'
in a mail client with body-search.]
Comment 4 Iain 2002-04-11 01:47:15 UTC
Mozilla doesn't display anything at the moment (0.9.9)

I'd say this is a GdkPixbuf bug, anyone else agree (adding federico,
sorry if you already get these bug reports...)
Comment 5 Jens Finke 2002-05-08 07:58:58 UTC
*** Bug 81123 has been marked as a duplicate of this bug. ***
Comment 6 Federico Mena Quintero 2002-06-21 00:30:12 UTC
Moving to gdk-pixbuf.
Comment 7 Matthias Clasen 2002-06-22 14:54:52 UTC
Here is a patch which adds support for CMYK and YCCK images to
io-jpeg.c
Comment 8 Matthias Clasen 2002-06-22 14:56:07 UTC
Created attachment 9399 [details] [review]
patch
Comment 9 Luis Villa 2002-06-25 20:53:31 UTC
PATCH. Woot. :) 
Comment 10 Owen Taylor 2002-07-01 13:21:16 UTC
Looks good for HEAD. Looks a bit big to me for stable.

What's up with the:

+
		/* FIXME this is the conversion for the 
+
		   Photoshop inverted CMYK data, in order to 
+
		   convert proper CMYK, use 255 - k instead of k 
+
		   througout. 
+
		*/

FIXME?
Comment 11 Matthias Clasen 2002-07-01 14:07:29 UTC
I think one can distinguish proper CMYK from inverted CMYK
by checking if K is 
actually min(C,M,Y), but I would need an
uninverted CMYK image to verify this 
idea.

Other tools seem to decide this by looking for an Adobe 
app marker. But 
this seems suboptimal to me. What if Adobe starts
shipping non-broken apps ?
Comment 12 Matthias Clasen 2002-07-01 22:23:54 UTC
Committed with the Adobe marker check for now.
Comment 13 Matthias Clasen 2002-07-03 08:15:39 UTC
Reopened for pixbuf-stable.
Comment 14 Federico Mena Quintero 2002-09-27 19:35:30 UTC
Backported, marking as fixed.

Matthias, you KICK ASS with your work on the pixbuf loaders :)
Comment 15 Owen Taylor 2002-12-01 17:37:37 UTC
*** Bug 100061 has been marked as a duplicate of this bug. ***
Comment 16 Bugzilla Maintainers 2004-04-01 23:44:57 UTC
The URL field has been removed from bugzilla.gnome.org. This URL was in the old URL field, and is being added as a comment so that the data is not lost. Please email bugmaster@gnome.org if you have any questions.

URL: 
http://www.ed.ac.uk/~kenny/fourchannel.jpg