Revision: 22218
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 6, 2010 07:44 by deepsoul
Initial Code
# Converting white on blue to black on beige: convert source.png -level-colors white,\#200070 +level-colors black,\#FFF8E0 dest.png # Converting white on blue to black on white: convert source.png -level-colors white,\#200070 dest.png # Converting black on white to white on blue: convert source.png +level-colors white,\#200070 dest.png
Initial URL
http://www.imagemagick.org/Usage/color/#level-colors
Initial Description
This snippet shows how to replace the colours in a monochrome image, i.e. one which only contains two colours and the range of hues between them.
Initial Title
Replace colour range
Initial Tags
replace, color
Initial Language
Bash