Replace image colors to another #1325
Unanswered
ivanamar996
asked this question in
Help
Replies: 2 comments
-
It appears that your source image is grayscale. What happens when you change the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks a lot, setting ColorType to TrueColorAlpha fixed my issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've tried to replace all colors from image to another by using Opaque method, this is code snippet of it:
Target color is :

For source PNG image that I uploaded, the result is not correct since all colors are replaced to gray. And I am confused why this is happening. I also tried to call imagemagick from command line and colors are replaced to the correct red color.
SOURCE IMAGE:

RESULT:

I tried to run image magick command in cmd:
magick source.png -fuzz 30% -fill rgba(214,0,88,85) -opaque black TECH2.png
And result is:

Is there anything that I am doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions