ImageMagick replace white with red not working

Viewed 32

This is the image:

enter image description here

The light part isn't perfect white but FDFDFD

I tried:

old.png -fuzz 5% -fill red -opaque white new.png

but the white becomes black!

1 Answers

Your image is greyscale. Try making it colour first:

magick old.png -colorspace sRGB -fuzz 5% -fill red -opaque white new.png
Related