From 62d7ca2201beac19a46b2d3568583d14ff43b728 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 17 Mar 2016 23:00:13 +0200 Subject: [PATCH] .zshrc: Set smartresize() to generate progressive images This sometimes results in a bit of overhead in image size but allows images to be loaded in a much more user-friendly way. Signed-off-by: Alan Orth --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index ebeb976..a1b31a8 100644 --- a/.zshrc +++ b/.zshrc @@ -121,7 +121,7 @@ fi # Similar to the one from SmashingMagazine, but ported to GraphicsMagick # see: http://www.smashingmagazine.com/2015/06/efficient-image-resizing-with-imagemagick/ smartresize() { - gm mogrify -filter Triangle -define filter:support=2 -thumbnail $2 -unsharp 0.25x0.08+8.3+0.045 -dither -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -strip -output-directory $3 $1 + gm mogrify -filter Triangle -define filter:support=2 -thumbnail $2 -unsharp 0.25x0.08+8.3+0.045 -dither -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace Line -strip -output-directory $3 $1 } # generate random password 25 characters long: