Skip to content

Instantly share code, notes, and snippets.

@patdavid
Created January 10, 2018 18:45
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 patdavid/e8109a7e81aa3167eb4a6a0001cd6913 to your computer and use it in GitHub Desktop.
Save patdavid/e8109a7e81aa3167eb4a6a0001cd6913 to your computer and use it in GitHub Desktop.
G'MIC Video Avg Command
avg_video :
-e[] "" -v - n=0 go=1
-do
-l[] -i "$1",$n,$n -if $! n+=1 -else go=0 -endif -onfail go=0 -endl
-+
-v + -e[] "\r - Image "$n" " -v -
-while $go -/ $n -v +
avg_files :
-e[] "" -v - files=${"-files \"$1\""} -arg2var _file,$files n=0 go=1
-do
-l[] -i ${_file{$n+1}} -if $! n+=1 -else go=0 -endif -onfail go=0 -endl
-+
-v + -e[] "\r - Image "$n" " -v -
-while $go -/ $n -v +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment