Skip to content

Instantly share code, notes, and snippets.

@theand
Created January 26, 2016 05:12
Show Gist options
  • Save theand/3ebcf51e316d0f392afa to your computer and use it in GitHub Desktop.
Save theand/3ebcf51e316d0f392afa to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in *.$1
do
if [ "$i" = "." ] || [ "$i" = ".." ]
then
continue
fi
convert "$i" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "cleaned_$i"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment