Replacing all instances of one color with another
Posted: 2011-01-22T09:53:03-07:00
Hello community!
I'm one of those users who only jumps for Imagemagick a few times of year when I have a sticky situation I need to get out of...
So I have a directory full of .png files. One instance of a grey color in them is a little off, so I want to replace that color across the board with a new color.
The incorrect color is #C0C0C0 and the desired color is #BFBFBF.
I have tried a few things... but not quite getting the output I need.
Here is what I have tried:
convert * -fill #BFBFBF +opaque #C0C0C0
mogrify *.png -opaque "#C0C0C0" -fill "#BFBFBF"
I think I'm on the right track (been googling like crazy) but not quite there...
Any help greatly appreciated!
I'm one of those users who only jumps for Imagemagick a few times of year when I have a sticky situation I need to get out of...
So I have a directory full of .png files. One instance of a grey color in them is a little off, so I want to replace that color across the board with a new color.
The incorrect color is #C0C0C0 and the desired color is #BFBFBF.
I have tried a few things... but not quite getting the output I need.
Here is what I have tried:
convert * -fill #BFBFBF +opaque #C0C0C0
mogrify *.png -opaque "#C0C0C0" -fill "#BFBFBF"
I think I'm on the right track (been googling like crazy) but not quite there...
Any help greatly appreciated!