RSS/Atom feed Twitter
Site is read-only, email is disabled

Babl CMYK-conversions

This discussion is connected to the gegl-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

5 of 5 messages available
Toggle history

Please log in to manage your subscriptions.

Babl CMYK-conversions Alexander Hämmerle 23 Dec 10:51
  Babl CMYK-conversions Øyvind Kolås 23 Dec 11:53
   Babl CMYK-conversions Alexander Hämmerle 28 Dec 17:19
    Babl CMYK-conversions Alexandre Prokoudine 28 Dec 17:20
     Babl CMYK-conversions Øyvind Kolås 28 Dec 18:27
Alexander Hämmerle
2011-12-23 10:51:01 UTC (almost 13 years ago)

Babl CMYK-conversions

Hi,

there seem to be some quirks in babl.

1) ./babl/base/model-cmyk.c

In the cmyk_to_rgb-function the components are assigned from the source in an erroneous order. Obviously in the CMYK-colorspace magenta is the second color. Here yellow takes its place and magenta is the third one.

double cyan = ((double *) src)[0]; double yellow = ((double *) src)[1]; double magenta = ((double *) src)[2]; double key = ((double *) src)[3];

2) ./babl/extensions/naive-CMYK.c

For what reason is there a second implementation of essentially the same code as you find it in model-cmyk.c in the file naive-CMYK.c? The only difference seems to be that model-cmyk.c makes the conversion RGB->CMYK and naive-CMYK.c implements RGBA->CMYK.
Wouldn't it be more comprehensive to have it all in one place? Or is RGB->CMYK the more basic conversion? I thought in Babl the RGBA-space were something like a reference.

3) More stunning for me: model-cmyk.c exists only in the GIT clone from git://git.gnome.org/babl but not in the downloaded tar.bz2 from ftp.gtk.org/pub/babl :-?

Sorry for my lack of understanding, Alex

Øyvind Kolås
2011-12-23 11:53:18 UTC (almost 13 years ago)

Babl CMYK-conversions

On Fri, Dec 23, 2011 at 10:51 AM, Alexander H

Alexander Hämmerle
2011-12-28 17:19:01 UTC (almost 13 years ago)

Babl CMYK-conversions

On Friday 23 December 2011 12:53:18 you wrote:

Thank you for your observation. The naive-cmyk extension is the only one that should be there. As CMYK conversions go it is not good enough either which is why it is called naive (that implementation seems to have the correct component ordering as well). An extension that implements conversions through ICC profiles and perhaps lcms would be a more proper way to define a CMYK based color space and pixel format.

I'm very interested in a more ambitious implementation of the CMYK-colorspace. Also because I would like to do more experimentation with printed outputs of processed or otherwise created images. Do you have any suggestions for a good introductory work on the theory related to ICC-profiles and digital color management systems?

alex

Alexandre Prokoudine
2011-12-28 17:20:28 UTC (almost 13 years ago)

Babl CMYK-conversions

On Wed, Dec 28, 2011 at 9:19 PM, Alexander H

Øyvind Kolås
2011-12-28 18:27:52 UTC (almost 13 years ago)

Babl CMYK-conversions

On Wed, Dec 28, 2011 at 5:20 PM, Alexandre Prokoudine wrote:

On Wed, Dec 28, 2011 at 9:19 PM, Alexander H