Page 1 of 1

Making a color palete

Posted: 2014-02-25T14:44:18-07:00
by RedFlyer
So I'm working a making a color palette that can be pulled from an image. Thus far I've gotten this:

Code: Select all

convert input.jpg +dither -colors 16 -unique-colors -scale 2110% filename_palette.gif
Which is great, it's nearly there, but when I open the images in photoshop and zoom in there is a single strip of gradated color between each of the swatch colors.

Image

Image

I need to figure out how to make it simply the swatch colors with no gradation at all.

Thanks!

Re: Making a color palete

Posted: 2014-02-25T15:03:41-07:00
by snibgo
The problem is that you are not multiplying the size by an integer (eg 2100% or 2200%). If you replace "-scale 2110%" by "-filter box -resize 2110%" this will probably give you the results you want.

Re: Making a color palete

Posted: 2014-02-25T18:06:48-07:00
by RedFlyer
awesome that's perfect!