convert background to transparent - imagemagick
Sección: Programación
Creado: 19-12-18 (Actualizado: 22-12-18)
convert your.jpg -transparent white your.png
Si la original es jpg:
convert image1.png -fuzz 20% -transparent white result.png
The -fuzz option allows the specified percentage deviation from the pure white colour to be converted to transparent as well. This is useful, for example, when your image contains noise or subtle gradients.