summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jäger <hendrik@securosys.ch>2017-08-15 08:00:28 +0200
committerHendrik Jäger <hendrik@securosys.ch>2017-08-15 08:00:28 +0200
commit147239d00c9b3ce1847942b7da2be2ca1c2a384f (patch)
tree869bb3899bf8ae31917ad7f82b3509dc6845c5fd
parentcc3db258f88cecbae213c1cb2ae8fd589021505a (diff)
parent3a5f48b983b238885420013ae7a1b4c0c86f8f58 (diff)
Merge branch 'master' of ssh://git.netwichtig.de/vcsh-zsh
-rw-r--r--.zsh_functions13
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
+}