summaryrefslogtreecommitdiff
path: root/ctwebp.sh
blob: e95b2365e62166fb0202f78712b5601fa7352d2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

convert_to_webp () {
	for file in ~/stf/ss/bnw/*.png
    do
	    OUTPUT=${file%.png}
	    echo "$OUTPUT"
	    convert -quality 80 "$file" "$OUTPUT.webp"
    done
    rm -f ~/stf/ss/bnw/*.png
}

convert_to_webp