Last active
March 1, 2022 20:56
-
-
Save Sevaarcen/739c0b3c2087ca1ef3712c3b19a8ce84 to your computer and use it in GitHub Desktop.
Bulk Convert PNG to WEBP
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
# https://developers.google.com/speed/webp/download | |
Get-ChildItem -Path . -File -Depth 0 | ForEach-Object -Parallel { &'C:\Program Files\libwebp\bin\cwebp.exe' -q 75 "$_" -o "$([io.path]::GetFileNameWithoutExtension($_)).webp" } -ThrottleLimit 16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useful flags for bulk converting
-mt
-m
0-6