Skip to content

Instantly share code, notes, and snippets.

@drakmail
Created October 29, 2012 15:52
Show Gist options
  • Select an option

  • Save drakmail/3974324 to your computer and use it in GitHub Desktop.

Select an option

Save drakmail/3974324 to your computer and use it in GitHub Desktop.

Revisions

  1. Alexander created this gist Oct 29, 2012.
    4 changes: 4 additions & 0 deletions remove_background.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    convert "$1" -bordercolor white -border 1x1 \
    -alpha set -channel RGBA -fuzz 20% \
    -fill none -floodfill +0+0 white \
    -shave 1x1 $2