Skip to content

Instantly share code, notes, and snippets.

View sebstr1's full-sized avatar

Sebastian Strindlund sebstr1

View GitHub Profile
#!/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