From 3a5f48b983b238885420013ae7a1b4c0c86f8f58 Mon Sep 17 00:00:00 2001 From: Hendrik Jaeger Date: Mon, 14 Aug 2017 22:46:35 +0200 Subject: [PATCH] Add pngpostproc function --- .zsh_functions | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 +} -- 2.39.5