identify+remove background
Posted: 2011-10-21T02:17:59-07:00
I tried to write a command line to remove the background of this old phototype.
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:
Worked my way through these turorials:
http://www.imagemagick.org/Usage/color_basics/#replace
http://www.imagemagick.org/Usage/color_basics/#opaque
http://www.imagemagick.org/Usage/masking/#bg_remove
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