I tried to identify the background and convert it to transparent. Though none of the command-line scripts worked. The image remained the same as in the input-image. I tried to get my way through these scripts:
Code: Select all
convert input_image.jpg -bordercolor black -border 1x1 -alpha set -channel RGBA -fuzz 20% -fill none -floodfill +0+0 white -shave 1x1 output_image
http://www.imagemagick.org/Usage/color_basics/#replace
http://www.imagemagick.org/Usage/color_basics/#opaque
http://www.imagemagick.org/Usage/masking/#bg_remove