X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=.zsh_functions;h=feb061655ad2dab7b8aa6311e11d579a88791f77;hb=147239d00c9b3ce1847942b7da2be2ca1c2a384f;hp=99a1d3a4052a6fa94f4fbc8e8e5d9746077af78f;hpb=cc3db258f88cecbae213c1cb2ae8fd589021505a;p=user%2Fhenk%2Fvcsh%2Fzsh.git 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 +}