How can I replace the color #234567 in all pixels by the color #223344 ?
As the subject already said I am searching for a way to replace all pixels with the color #234567
in a currently existing picture with the color #223344.
How can I do this with IM?
Ben
How can I replace the color #234567 by the color #223344?
Re: How can I replace the color #234567 by the color #223344?
Use the -opaque option for the convert command.
Re: How can I replace the color #234567 by the color #223344?
...and how would the full command line look like?rmagick wrote:Use the -opaque option for the convert command.
Ben
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How can I replace the color #234567 by the color #223344?
convert <infile> -fill "#223347" -opaque "#234567" <outfile>
see
http://www.imagemagick.org/Usage/color/#replace
see
http://www.imagemagick.org/Usage/color/#replace