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 783334 - Discrepancy importing CMYK from JPG or TIF
Discrepancy importing CMYK from JPG or TIF
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: libgimp
gimp-2-8
Other Windows
: Normal minor
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2017-06-02 00:36 UTC by anyttwo
Modified: 2018-05-24 17:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testsalmon images for RGB-CMYK-RGB (2.63 KB, application/x-zip-compressed)
2017-06-02 00:36 UTC, anyttwo
Details

Description anyttwo 2017-06-02 00:36:05 UTC
Created attachment 353038 [details]
testsalmon images for RGB-CMYK-RGB

Using Gimp 2.8.22 on Windows 10. I have a very small, 8-bits per channel, solid-color PNG test image. Using other software, I convert it to CMYK, using color management One converstion is to JPG, one conversion is to TIF. The color profiles are stripped away after conversion. Even though GIMP cannot produce CMYK, it can open these files, re-converting to RGB.

I expect that the JPG and TIF files should look the same, even if there is some loss from the original PNG. But in GIMP, they look noticeable different. I have analyzed this using GraphicsMagick identify -verbose to get the channel values.

The original RGB png image:
R=56797, G=38550, B=38036.

Converted to CMYK JPG (highest quality):
C=1799, M=20817, Y=13364, K=1028.

Converted to CMYK TIF:
C=1799, M=20817, Y=13364, K=1028.

CMYK JPG imported to GIMP, exported as png:
R=57568, G=46517, B=45489.

CMYK TIF imported to GIMP, exported as png:
R=62708, G=43947, B=51143.

Thus, with GIMP, the re-converted images are noticeably different. The one via JPG is vaguely like the original, but the one via TIF is quite different.

CMYK JPG imported to Windows Paint, exported as png:
R=61680, G=46260, B=43947.

CMYK TIF imported to Windows Paint, exported as png:
R=61680, G=46260, B=43947.

Thus, with Windows Paint, the re-converted images are identical.

I conclude that the transfer function GIMP uses when importing CMYK, is different depending on whether the imported image is JPG or TIF. No color profiles embedded.

The discrepancy is quite noticeable in GIMP. A similar discrepancy happens in Irfan View, a Windows image viewer (without using color management).

However, there is no discrepancy in Windows Paint, or in Photoshop Elements 11, or in Adobe Acrobat Pro 9, or Krita 3. These four programs show both of the re-converted images at roughly the original color. Some loss is expected, since color profiles were not embedded.

Intriguingly, the GraphicsMagick viewer shows the re-converted images as identical, but both are like what GIMP gets from intermediate TIF. That is, they are noticeably different from the original. See attached testsalmon.zip for images.
Comment 1 anyttwo 2017-06-02 04:26:29 UTC
After further investigation: I believe (not sure) that GIMP is honoring the CMYK profile I set in GIMP color management, but only for importing the JPG and not the TIF.

If so, GraphicsMagick gets them identical but wrong, assuming that GM does not guess a likely CMYK profile, since the GM viewer is not internally color managed.

The others, which get both right, are probably accessing a likely CMYK profile, and applying it to both JPG and TIF.
Comment 2 Kunda 2018-05-23 15:32:33 UTC
(In reply to anyttwo from comment #1)
> After further investigation: I believe (not sure) that GIMP is honoring the
> CMYK profile I set in GIMP color management, but only for importing the JPG
> and not the TIF.
> 
> If so, GraphicsMagick gets them identical but wrong, assuming that GM does
> not guess a likely CMYK profile, since the GM viewer is not internally color
> managed.
> 
> The others, which get both right, are probably accessing a likely CMYK
> profile, and applying it to both JPG and TIF.

Is this still the case for 2.10.x ?
Comment 3 anyttwo 2018-05-24 15:25:57 UTC
(In reply to Kunda from comment #2)
> (In reply to anyttwo from comment #1)
> > After further investigation: I believe (not sure) that GIMP is honoring the
> > CMYK profile I set in GIMP color management, but only for importing the JPG
> > and not the TIF.
> > 
> > If so, GraphicsMagick gets them identical but wrong, assuming that GM does
> > not guess a likely CMYK profile, since the GM viewer is not internally color
> > managed.
> > 
> > The others, which get both right, are probably accessing a likely CMYK
> > profile, and applying it to both JPG and TIF.
> 
> Is this still the case for 2.10.x ?

Same in 2.10.
Comment 4 GNOME Infrastructure Team 2018-05-24 17:53:33 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/1106.