Skip to content

Instantly share code, notes, and snippets.

@lyoshenka
Last active January 4, 2016 21:09
Show Gist options
  • Save lyoshenka/8678575 to your computer and use it in GitHub Desktop.
Save lyoshenka/8678575 to your computer and use it in GitHub Desktop.
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
#!/bin/bash
convert $1 -resize %50 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 $2
# source: http://www.reddit.com/r/commandline/comments/1weqnn/cli_oneliner_script_to_clean_up_and_beautify/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment