kyu08/blog

画像を圧縮する

kyu08 opened this issue · 0 comments

kyu08 commented

brew install webp
cwebp image.png -o image.webp
https://cruw.co.jp/blog/webp-conversion/

for file in *.{jpg,jpeg,png}; do cwebp "$file" -o "${file%.*}.webp"; done