Gimp-Forum.net
Separating image into four primary colors - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Separating image into four primary colors (/Thread-Separating-image-into-four-primary-colors)

Pages: 1 2


Separating image into four primary colors - Flotsam2000 - 08-28-2020

Hi there,

Does anyone know how I would go about turning an image into just it’s four primary colors (and black), and then saving each of those colors as it’s own layer/png? Is there a plug-in that does this for you? I am trying to make multi color stencils....


RE: Separating image into four primary colors - denzjos - 08-29-2020

Maybe you can use the GMicQt plugin : Colors / Decompose Channels and set the color base to CMYK and the action to Decompose. 
Color the different results with CMY :
[attachment=4816]


RE: Separating image into four primary colors - rich2005 - 08-29-2020

@Flotsom2000

Primary colours ? Is this RGB or CMY or both + Black (K in cmyk)

It is possible using Gimp Colors -> Components -> Decompose and a bit of image manipulation.

A little more specific please.


RE: Separating image into four primary colors - denzjos - 08-29-2020

Found a plugin that may be a better solution : https://e-smog.org/blog/gimp/2018/10/10/separate-plus-gimp-2-10-6.html

[attachment=4817]


RE: Separating image into four primary colors - Flotsam2000 - 08-29-2020

(08-29-2020, 07:55 AM)rich2005 Wrote: @Flotsom2000

Primary colours ? Is this RGB or CMY or both + Black (K in cmyk)

It is possible using Gimp Colors -> Components -> Decompose and a bit of image manipulation.

A little more specific please.

Maybe "primary colors" is too broad. I just want to be able to separate any image into four main colors aside from black, so five colors... In order to save each color as a layer to export as a PNG so that I can create stencils from each of the five colors so that when stacked they compose the image again... Does that make sense?

(08-29-2020, 08:26 AM)denzjos Wrote: Found a plugin that may be a better solution : https://e-smog.org/blog/gimp/2018/10/10/separate-plus-gimp-2-10-6.html

Hmmm. What does the plugin do? I can't read German  Big Grin


RE: Separating image into four primary colors - rich2005 - 08-29-2020

First the plugin. It is separate+ A very old plugin to create CMYK images suitable to send to a printing company. It does make layers of C,M,Y,K Last time I tried it in Gimp 2.10 (I see you are visiting from the future and using Gimp 3 ) It was very flakey.

Quote:.. I just want to be able to separate any image into four main colors aside from black, so five colors... In order to save each color as a layer to export as a PNG so that I can create stencils from each of the five colors so that when stacked they compose the image again...

Yes makes sense, but who determines the colours and If not the primaries RGB / CMY then you need to remember the colours used, each will be a mix of RGB.

Another question. You mention stencils, Are these hand-cut or something else, say masks used for screen printing ?


RE: Separating image into four primary colors - rich2005 - 08-29-2020

First thoughts: Using this script: http://chiselapp.com/user/saulgoode/repository/script-fu/wiki?name=sg-indexed-decompose

The image does not have to be indexed, but you do need some way of reducing the number of colours down to your requirement.

example: https://i.imgur.com/EwzTZ2O.mp4


RE: Separating image into four primary colors - denzjos - 08-29-2020

Rich, nice plugin find and good tutorial, I used it on my photo and this is the result (poor colors, but maybe this is what Flotsam2000 is looking for): 

[attachment=4819]


RE: Separating image into four primary colors - Krikor - 08-29-2020

increasingly difficult to find scripts compatible with gimp 2.10 Sad

  GIMP Warning
'Indexed Decompose' plug-in left image undo in inconsistent state, closing open undo groups.

  GIMP Error
Execution error for 'Indexed Decompose':
Error: (: 1) eval: unbound variable: NO-DITHER


RE: Separating image into four primary colors - rich2005 - 08-29-2020

Quote:...increasingly difficult to find scripts compatible with gimp 2.10...

As Ofnuts said in another post, it is probably the way the latest samj's portable Gimp 2.10 is compiled.