Making a color palete

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
RedFlyer
Posts: 8
Joined: 2014-01-30T16:57:55-07:00
Authentication code: 6789

Making a color palete

Post 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!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Making a color palete

Post 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.
snibgo's IM pages: im.snibgo.com
RedFlyer
Posts: 8
Joined: 2014-01-30T16:57:55-07:00
Authentication code: 6789

Re: Making a color palete

Post by RedFlyer »

awesome that's perfect!
Post Reply