Created
March 26, 2020 21:52
-
-
Save m4r00p/04187d98b7d0d1eff5d3ebd2f94c4aaa to your computer and use it in GitHub Desktop.
This file contains 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
for file in images/*; do cwebp "$file" -o "${file%.*}.webp"; done | |
# <picture> | |
# <source type="image/webp" srcset="flower.webp"> | |
# <source type="image/jpeg" srcset="flower.jpg"> | |
# <img src="flower.jpg" alt=""> | |
# </picture> | |
# https://web.dev/serve-images-webp/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment