How I can remove background color from image using GraphicsMagick? I need to delete rgb(255,255,255) and rgb(254,254,254) colors from image and replace them to transparency.
Thank you.
you should tinker with fuzz -parameter to match #fefefe
gm convert in.png -fuzz 3% -transparent "#ffffff" out.png
Should comment but cannot.
gm convert -geometry 50x50! -background white -extent 0x0 +matte in.png out.jpg or
gm convert -background color -extent 0x0 +matte src.png dst.png
gm convert +page alpha.gif beta.gif
. The +page removes the unwanted page offset and firefox should behave as assured. It removes the background that prints around your image when it displays in that browser.
Aug 22, 2014 at 10:49