🔗Create an image with transparent background

Using convert from imagemagick:

convert input.jpg -fuzz 10% -transparent white transparent.png