From 0a043dbb7259cc59ac56b31573469f445a7921ed Mon Sep 17 00:00:00 2001 From: mono-b Date: Sun, 18 Dec 2022 23:00:24 -0300 Subject: up --- ctwebp.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 ctwebp.sh (limited to 'ctwebp.sh') diff --git a/ctwebp.sh b/ctwebp.sh new file mode 100755 index 0000000..e95b236 --- /dev/null +++ b/ctwebp.sh @@ -0,0 +1,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 -- cgit v1.2.1