Resources and Support
 Pixel Joint Forum : The Lounge : Resources and Support
Message Icon Topic: Program to reduce number of colors. Post Reply Post New Topic
Author Message
torguen
Midshipman
Midshipman


Joined: 26 January 2016
Online Status: Offline
Posts: 59
Quote torguen Replybullet Topic: Program to reduce number of colors.
    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.

IP IP Logged
surt
Commander
Commander
Avatar

Joined: 30 December 2015
Online Status: Offline
Posts: 413
Quote surt Replybullet 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:
IP IP Logged
neota
Commander
Commander
Avatar

Joined: 27 November 2018
Online Status: Offline
Posts: 158
Quote neota Replybullet 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 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.


Edited by neota - 07 March 2015 at 2:16am
absolutely.
IP IP Logged
torguen
Midshipman
Midshipman


Joined: 26 January 2016
Online Status: Offline
Posts: 59
Quote torguen Replybullet 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.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum