Palette Generator..

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Palette Generator..

Post by dognose »

Does anybody know how the various palette generators work?

Example:
http://bighugelabs.com/flickr/img/colors-sample.jpg

Do they just look at the primarily used colors? How can you find which colors are used most?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Palette Generator..

Post by anthony »

Most pallettes are bad. basically because they are restricted to small a number of colors.

Typical choices are just a linear 'posterization' which IM can provide.
Another method not implemented is to skew the posterization basied on a gamma function.
See my notes in IM Examples, Quantization, Generating Color Maps
http://imagemagick.org/Usage/quantize/#map_colormaps

For auto-generation of 'best' colormaps. see the rest of that same page. The whole process is called Quantization. The application of a colormap to an image is called Dithering, or threshold mapping, which that page also deals with.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply