[RESOLVED] Change color not working
Posted: 2017-05-03T10:23:01-07:00
I believe I am doing a pretty simple command here. I realize this is pointless, but if I can figure out why this doesn't work, I can hopefully fix a bigger problem. I am just taking a solid canvas color and trying to change it to another color. I am using version 7.0.5-5 x64, command line Windows 10.
Here are the two commands:
magick convert -size 48x48 xc:green cal_1.png
magick convert cal_1.png -fill red -opaque green cal_2.png
It has no effect. When I change the colors I get different results. For instance, this works:
magick convert -size 48x48 xc:black C:\a\tst1\4\cal_1.png
magick convert cal_1.png -fill white -opaque black cal_2.png
What am I doing wrong? I am hoping to swap colors, so that I can try this with an image with more colors. Thanks
Here are the two commands:
magick convert -size 48x48 xc:green cal_1.png
magick convert cal_1.png -fill red -opaque green cal_2.png
It has no effect. When I change the colors I get different results. For instance, this works:
magick convert -size 48x48 xc:black C:\a\tst1\4\cal_1.png
magick convert cal_1.png -fill white -opaque black cal_2.png
What am I doing wrong? I am hoping to swap colors, so that I can try this with an image with more colors. Thanks