Skip to content

Instantly share code, notes, and snippets.

View arvearve's full-sized avatar

Arve Nygård arvearve

View GitHub Profile

Description

This simple function will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

    function whiteboard(){
        convert $1 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1  "${@:2}"     ${1%.*}.png
    }