.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 <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2016-03-17 23:00:13 +02:00
parent 3c135c71b7
commit 62d7ca2201
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

2
.zshrc
View File

@ -121,7 +121,7 @@ fi
# Similar to the one from SmashingMagazine, but ported to GraphicsMagick # Similar to the one from SmashingMagazine, but ported to GraphicsMagick
# see: http://www.smashingmagazine.com/2015/06/efficient-image-resizing-with-imagemagick/ # see: http://www.smashingmagazine.com/2015/06/efficient-image-resizing-with-imagemagick/
smartresize() { 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: # generate random password 25 characters long: