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

GIMP 2.4 and CMYK

This discussion is connected to the gimp-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.

python scripts not working (2.3.8/linux) lode leroy 27 Apr 14:18
python scripts not working (2.3.8/linux) lode leroy 27 Apr 14:24
  GIMP 2.4 and CMYK Julien Pons 02 May 16:57
   GIMP 2.4 and CMYK cedric GEMY 02 May 23:41
   GIMP 2.4 and CMYK Sven Neumann 03 May 09:40
lode leroy
2006-04-27 14:18:42 UTC (almost 18 years ago)

python scripts not working (2.3.8/linux)

when trying the pygimp->sphere.py, I get an error message

PDB calling error for procedure 'gimp-context-set-foreground': Argument 'foreground' (#1, type GimpRGB) out of bounds (validation changed ''

I tracked this down to this: gimpmodule.c: pygimp_set_foreground(PyObject *self, PyObject* args) { GimpRGB colour;
...
gimp_rgb_set_uchar(&colour, r, g, b); gimp_context_set_background(&colour); ...
}

it looks like the "colour" is not correctly initialized (the "a" member is not initialized)
adding a " gimp_context_get_background(&colour);" before makes pygimp work again...

I wonder what the best way to fix this would be:

bzero(colour) memset(&colour, 0, sizeof(colour));
colour->a = 0; // in gimp_rgb_set_uchar()

-- lode

lode leroy
2006-04-27 14:24:57 UTC (almost 18 years ago)

python scripts not working (2.3.8/linux)

when trying the pygimp->sphere.py, I get an error message

PDB calling error for procedure 'gimp-context-set-foreground': Argument 'foreground' (#1, type GimpRGB) out of bounds (validation changed ''

I tracked this down to this: gimpmodule.c: pygimp_set_foreground(PyObject *self, PyObject* args) { GimpRGB colour;
...
gimp_rgb_set_uchar(&colour, r, g, b); gimp_context_set_background(&colour); ...
}

it looks like the "colour" is not correctly initialized (the "a" member is not initialized)
How about this patch?

--- gimpmodule.c 2006-01-23 15:46:19.000000000 +0100 +++ gimpmodule.c 2006-04-27 14:24:24.000000000 +0200 @@ -808,7 +808,7 @@
g = CLAMP(g, 0, 255);
b = CLAMP(b, 0, 255);

- gimp_rgb_set_uchar(&colour, r, g, b); + gimp_rgba_set_uchar(&colour, r, g, b, 1); gimp_context_set_background(&colour);

Py_INCREF(Py_None); @@ -831,7 +831,7 @@
g = CLAMP(g, 0, 255);
b = CLAMP(b, 0, 255);

- gimp_rgb_set_uchar(&colour, r, g, b); + gimp_rgba_set_uchar(&colour, r, g, b, 1); gimp_context_set_foreground(&colour);

Py_INCREF(Py_None);

-- lode

Julien Pons
2006-05-02 16:57:52 UTC (almost 18 years ago)

GIMP 2.4 and CMYK

Hello,

I'm the author of the book "GIMP 2.2" published in France by ENI. It's the one at the top of this page : http://www.gimp.org/books/

I'm currently working on a top secret project...well...ok it's a book on Gimp 2.4 :)

I'm pre-writing it with the beta 2.3.7 on Win32 and Fedora Core 5. I saw there is an ICC color management support but still nothing to _create_ an image directly in CMYK.
I just wanted to know if CMYK support is planned for 2.4 final release, or if it's just ICC profiling support but still need to work in RVB mode before separating...

Thanks in advance !

Best regards,

Julien Pons - Graphiste / Auteur http://www.julienpons.fr
Cell : 06 22 71 04 21
Fixe : 08 72 22 04 21

cedric GEMY
2006-05-02 23:41:24 UTC (almost 18 years ago)

GIMP 2.4 and CMYK

Hi, Julien

Cedric, author of Gimp 2 Efficace. It is to be confirm by pippin or other but i guess CMYK will be a feature from GEGL. And in my knowledge, there is no date planned yet.

cordialement

Sven Neumann
2006-05-03 09:40:28 UTC (almost 18 years ago)

GIMP 2.4 and CMYK

Hi,

Julien Pons writes:

I'm pre-writing it with the beta 2.3.7 on Win32 and Fedora Core 5. I saw there is an ICC color management support but still nothing to _create_ an image directly in CMYK.

Color management is supposed to be improved for the 2.4 release and I also plan to include the functionality provided by the Separate plug-in in the standard TIFF plug-in. That will give you the possibility to create CMYK files but you still won't be able to edit images in CMYK mode.

Sven