This project has moved and is read-only. For the latest updates, please go here.

Extract main colors from an image

Sep 21, 2016 at 9:36 AM
How do I extract main colors form an image and then map to a color map?

convert original.jpg -dither None -map colors.bmp converted.bmp
convert converted.bmp -format %c histogram:info:-
Sep 21, 2016 at 5:04 PM
Your console command looks different from what you are asking. Do you want to get the primary colors of the image so you can get the colors.bmp file? Or do you just want to change your image to only the primary colors? How many colors do you want to use?