Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to separate an image into multiple layers based on color
#10
(04-27-2020, 03:30 PM)jpummill Wrote:
(04-27-2020, 06:46 AM)rich2005 Wrote:
(04-27-2020, 06:44 AM)Ofnuts Wrote: The OP's posterized image is a JPEG. JPEG compression will create new colors.

Lets hope that OP is not using that one then. Wink

Hey Everyone, I wanted to thank all of you for taking the time to provide input on my question.

Sorry about the image provided being a JPEG.  I didn't think about the ramifications regarding color.  I am still using Gimp 2.8 and my posterize seemed to be working correctly.

I'm looking for a way to automate the process.  I would like to create a python-fu script to create the original image, posterize it, and then split it into separate layers.  I would then like to bump map each layer and create a drop shadow for each layer.

Ultimately, I am trying to create the following type image (and then automate the process).



Thanks again for your useful comments!!!

The technique I explained with thresholded layer masks is inspired by one of my scripts, which is demonstrated here:

http://gimpchat.com/viewtopic.php?f=9&t=9311

The script is here: https://sourceforge.net/projects/gimp-to...y/download

Some doc at the bottom of this page: http://gimp-tools.sourceforge.net/tools.shtml

80% of the script can be reused. In fact you just have to remove the pixellation step and the tiles images and use hard-wired values for the thresholds (or your own algorithm/heuristic).  You have to add the drop-shadow (easy to script) and perhaps the smoothing of the curve (but then upscaling noise should do it).
Reply


Messages In This Thread
RE: How to separate an image into multiple layers based on color - by Ofnuts - 04-27-2020, 08:08 PM

Forum Jump: