From 8aba9199c1b101e47c1459f760982b471ce6b6e3 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 22 Jun 2015 10:09:34 +0100 Subject: [PATCH] nb-img-compress --- etc/bashrc.function | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/etc/bashrc.function b/etc/bashrc.function index 1b27e5ab..157775c2 100644 --- a/etc/bashrc.function +++ b/etc/bashrc.function @@ -312,3 +312,11 @@ nb-alert() { nb-ips() { ifconfig | perl -ne '/^\s*inet (?:addr:)?([\d\.]+)/ and $1 ne "127.0.0.1" and print "$1\n"' } + +nb-img-compress() { + convert -strip -interlace Plane -gaussian-blur 0.05 -quality 85% $@ +} + +nb-img-compress-gray() { + nb-images-compress -colorspace Gray $@ +} -- 2.47.3