Here is an example image, the goal would be to remove the white except for the X as it is inside the star.
The ideal output would look like this (the white of the X is maintained)
Right now I am using the following command and the white inside the X is also being removed
Code: Select all
convert target.png -fuzz 5% -fill none -draw "matte 0,0 replace" target-out.png