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
#!/bin/bash | |
# Batch Convert all images in folder to webp. | |
# Create .sh file, paste this into the file, make it executable and run it; "./webp_batch.sh /path/to/folder/" | |
PATH=/usr/local/bin:/usr/bin:/bin | |
PARAMS=('cwebp -q 75 -alpha_q 10') # -alpha_q 10 is for images with transparent background | |
cd $1 || exit 1 |