test
test

Reputation: 18198

ImageMagick - Turn image transparent via color

Well, I have this image https://i.sstatic.net/78yU0.png and I want to make it transparent. By that I mean I want the pink background gone...

However, it's long and doing pixel wand would take a while. Can I use ImageMagick and do something about it?

Upvotes: 0

Views: 316

Answers (1)

Bonzo
Bonzo

Reputation: 5299

As if by magick:

convert 78yU0.png -fuzz "2%" -transparent #ff00ff transparent.png

Out of interest when looking at your image in gimp to get the colour of the pink it looks like your image is not correctly placed on the canvas. It still seems to work but might cause problems later?

Upvotes: 1

Related Questions