Created
October 9, 2024 13:44
-
-
Save smohammadhn/9ecbc2f7a4ba76a1d57701b45a3be6bf to your computer and use it in GitHub Desktop.
png => webp via ffmpeg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf webp | |
mkdir webp | |
for img in *.png; do | |
echo $img | |
ffmpeg -i $img -vf scale=80:80 -compression_level 6 -q:v 80 "./webp/${img%.png}.webp" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment