This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/bin/optimize-photo-for-web

19 lines
407 B
Plaintext
Raw Permalink Normal View History

2019-12-31 10:15:01 -06:00
#!/usr/bin/env bash
mogrify \
-filter Triangle \
-define filter:support=2 \
-resize 2000x2000\> \
-unsharp 0.25x0.08+8.3+0.045 \
-dither None \
-posterize 136 \
-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 \
-colorspace sRGB \
2020-04-20 10:38:19 -05:00
"$1"