Skip to content

Instantly share code, notes, and snippets.

@maz-1
Last active September 19, 2018 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maz-1/2119a882dc7b981e68a24b34b3b13141 to your computer and use it in GitHub Desktop.
Save maz-1/2119a882dc7b981e68a24b34b3b13141 to your computer and use it in GitHub Desktop.
#!/bin/sh
convert $input -colorspace gray ( +clone -blur 15,15 ) -compose Divide_Src -composite -normalize -threshold 80% $output
convert $input -colorspace gray ( +clone -blur 15,15 ) -compose Divide_Src -composite -normalize $output
convert $input -colorspace RGB ( +clone -blur 15,15 ) -compose Divide_Src -composite -normalize -threshold 80% $output
convert $input -colorspace RGB ( +clone -blur 15,15 ) -compose Divide_Src -composite -normalize $output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment