summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jaeger <git-commit@henk.geekmail.org>2017-08-14 22:46:35 +0200
committerHendrik Jaeger <git-commit@henk.geekmail.org>2017-08-14 22:46:35 +0200
commit3a5f48b983b238885420013ae7a1b4c0c86f8f58 (patch)
treea019772cd7b5fcbbf4ae8cd584d42d87b5693358
parent802b62bf6b92bd9763cefa5b92fb37b3bcc6accf (diff)
Add pngpostproc function
-rw-r--r--.zsh_functions13
1 files changed, 13 insertions, 0 deletions
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
+}