From: Nicolas Boisselier Date: Mon, 22 Jun 2015 09:09:34 +0000 (+0100) Subject: nb-img-compress X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=8aba9199c1b101e47c1459f760982b471ce6b6e3;p=nb.git nb-img-compress --- 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 $@ +}