Open3
Linuxで画像圧縮を再帰的に行う(jpegoptim)
find . -name "*.png" -type f | while read f; do mv "$f" "${f%.*}.jpg"; done ; find . -name "*.jpg" -or -name "*.jpeg" -type f | while read f; do jpegoptim --strip-all "$f"; done
pngをjpgに変更
find . -name "*.png" -type f | while read f; do mv "$f" "${f%.*}.jpg"; done
画像圧縮
find . -name "*.jpg" -or -name "*.jpeg" -type f | while read f; do jpegoptim --strip-all "$f"; done
ディレクトリの圧縮
find . -type d | while read f; do zip -r "${f}".zip "$f"; done