Using a custom palette

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
SharkD
Posts: 35
Joined: 2006-07-30T13:18:31-07:00

Using a custom palette

Post by SharkD »

Hi!

I was wondering how one might reduce the number of colors in an image by applying a custom indexed palette to the image. I have a custom palette in Photoshop .act format as well as Paint Shop Pro .pal format.

Thanks!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

See IM Examples -- Color Quantization.

In specific answer, use -map colortable_image with or withour a +dither setting before it.
http://www.cit.gu.edu.au/~anthony/graph ... ntize/#map
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
SharkD
Posts: 35
Joined: 2006-07-30T13:18:31-07:00

Post by SharkD »

Thanks!
Post Reply