From: Hendrik Jaeger Date: Mon, 14 Aug 2017 20:46:35 +0000 (+0200) Subject: Add pngpostproc function X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=3a5f48b983b238885420013ae7a1b4c0c86f8f58;p=user%2Fhenk%2Fvcsh%2Fzsh.git Add pngpostproc function --- diff --git a/.zsh_functions b/.zsh_functions index 18aa5e3..137c381 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 +}