最後活躍 5 days ago

Use this command to compress an image and strip all metadata from it.

airikr 已修改 5 days ago. 還原成這個修訂版本

1 file changed, 8 insertions

gistfile1.txt(檔案已創建)

@@ -0,0 +1,8 @@
1 + function reduceimage {
2 + magick "$1" \
3 + -resize "${2:-2000}x${2:-2000}>" \
4 + -strip \
5 + -quality 45 \
6 + -define webp:lossless=false \
7 + "${1%.*}-r.webp"
8 + }
上一頁 下一頁