diff options
author | mono-b <monoblanco@DRAINERDOMAIN.localdomain> | 2022-12-18 23:00:24 -0300 |
---|---|---|
committer | mono-b <monoblanco@DRAINERDOMAIN.localdomain> | 2022-12-18 23:00:24 -0300 |
commit | 0a043dbb7259cc59ac56b31573469f445a7921ed (patch) | |
tree | 28e87b1b7bbc035fbc467d5a7fc63204960dc247 /ctwebp.sh |
up
Diffstat (limited to 'ctwebp.sh')
-rwxr-xr-x | ctwebp.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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 |