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