Program to reduce number of colors.
Printed From: Pixel Joint
Category: The Lounge
Forum Name: Resources and Support
Forum Discription: Help your fellow pixel artists out with links to good tutorials, other forums, software, fonts, etc. Bugs and support issues should go here as well.
URL: https://pixeljoint.com/forum/forum_posts.asp?TID=21725
Printed Date: 02 November 2025 at 8:07am
Topic: Program to reduce number of colors.
Posted By: torguen
Subject: Program to reduce number of colors.
Date Posted: 06 March 2015 at 7:49am
Hello, please, ¿does anyone know any program that can reduce the number of colors in an image to 4 colors?.
No phosothop.
I want to reduce to 4 colors of this picture.
|
Replies:
Posted By: surt
Date Posted: 06 March 2015 at 7:35pm
Every halfway decent image editor ever.
GraphicsGale, Gimp, Photoshop.
Most do a pretty crappy job though.
eg. Gimp:

-------------
|
Posted By: neota
Date Posted: 07 March 2015 at 1:58am
Given that your image is indexed already, you could use GrafX2's palette editor to reduce it. First, use the reduce function to reduce it to a manageable number of colors, say, about 16 colors -- whatever looks 'decent quality' to you. Then you can Merge remaining colors as you see fit, until you end up with a 4-color result. This gives you a fair bit of control over the result.
Surt: Most image editors use some kind of median cut. GIMP in particular uses a median cut in LAB colorspace. The overall effect tends to reduce extreme values.
You can compensate for this effect by preprocessing the image with color adjustments (Saturation, Contrast, Brightness) and sharpening (my favorite is GMIC 'freaky details' filter on default settings), possibly Retinex or tone mapping. This is.. kind of something you should really consider doing anyway, get the image just right before you go nuking its colorcount.
Here's what you get, quantizing after applying Freaky Details once.

IMO this is pretty acceptable; it's about as good a result as you could hope for from such a poorly defined input image.
BTW http://members.ozemail.com.au/~dekker/NEUQUANT.HTML - NeuQuant is pretty much the best quantization algorithm I've come across.. IF you want 64-256c palette. It's not very helpful for palettes this small, unfortunately.
------------- absolutely.
|
Posted By: torguen
Date Posted: 07 March 2015 at 11:34am
Ok thanks, I tested with gale graphics but the results did not like.
In the end I adapted a program I found for my needs.
|
|