Created
August 28, 2023 02:17
-
-
Save piouc/c41e51551ad1b3867f2d9e344931b2f0 to your computer and use it in GitHub Desktop.
convert-all-png-to-webp.sh
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
find . -type f -name '*.png' -print0 | xargs -0 -n 1 bash -c 'cwebp "$0" -o "${0%.png}.webp"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment