Skip to content

Instantly share code, notes, and snippets.

View stefanedberg's full-sized avatar

Stefan Edberg stefanedberg

View GitHub Profile
@tabrindle
tabrindle / webp-convert-directory.sh
Last active April 16, 2025 15:25
Convert all files in directory to webp, with default params, or standard cwebp params passed from command
#!/bin/bash
PARAMS=('-m 6 -q 70 -mt -af -progress')
if [ $# -ne 0 ]; then
PARAMS=$@;
fi
cd $(pwd)