diff options
-rw-r--r-- | .zsh_functions | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.zsh_functions b/.zsh_functions index 99a1d3a..feb0616 100644 --- a/.zsh_functions +++ b/.zsh_functions @@ -54,3 +54,16 @@ function new_haskell_project () { cd $1 git init } + +function henkspngpostproc () { + local resize_by + local img + resize_by="$1" + shift + for img in $* + do + mkdir -p resized/pngnqed + convert -resize $resize_by% $img resized/$img + pngnq -f -d resized/pngnqed -e .png resized/$img + done +} |