.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:
parent
3c135c71b7
commit
62d7ca2201
2
.zshrc
2
.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:
|
||||
|
Loading…
Reference in New Issue
Block a user