Hi All
I'm trying to extract matching colors from an image.
For example : http://www.degraeve.com/color-palette/
I've tried a few ways with IM, and I can get something close with
" -colors 5 -unique-colors "
then outputing the color data.
But, I'm not happy with the colors listed. They seem more dull and mismactched than the ones with degraeve's site.
Any ideas on how to extract a nice color palette?
Color Palette - main colors
Re: Color Palette - main colors
This has been discussed a couple of times before and its just a matter of finding the threads!
Latest one: viewtopic.php?f=1&t=25086&hilit=color+palete
I can not find the interesting one from a few years ago.
Latest one: viewtopic.php?f=1&t=25086&hilit=color+palete
I can not find the interesting one from a few years ago.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Color Palette - main colors
It would appear that they process the input image to adjust the brightness and contrast or gamma or sigmoidal-contrast so as to make a dull version and vibrant version. However without adding such processing, try reducing the depth first.
compare these (unix syntax)




compare these (unix syntax)

Code: Select all
list=`convert beach.jpg +dither -colors 5 -unique-colors txt:- | tail -n +2 | sed -n 's/^.*\#.* \(.*\).*$/xc\:\1/p'`
convert -size 50x50 $list -append palette.png

Code: Select all
list=`convert beach.jpg -depth 3 +dither -colors 5 -unique-colors txt:- | tail -n +2 | sed -n 's/^.*\#.* \(.*\).*$/xc\:\1/p'`
convert -size 50x50 $list -append palette2.png

