Software-UsageffmpegOn this pageffmpegCommon Use Case Compress all images under a directory mkdir backupfor file in *.png; do ffmpeg -i "$file" -compression_level 100 -y "backup/${file}_compressed.png"; done