Page 1 of 1

get color of image palette

Posted: 2010-04-14T02:09:30-07:00
by pedroko
I have a questions for command line image magick
I know there is a color in a image palette, buy i need the index of this color in the palette. Is there a way to know it?
Thank you

Re: get color of image palette

Posted: 2010-04-14T08:34:05-07:00
by snibgo
identify -verbose input.png

will write the palette to stdout. Your script could then search for the colour.