diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-09-10 14:16:08 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-09-10 14:16:08 +0200 |
commit | 6b1bf5c79ac30a54913078c7eb2039e1f6850b1e (patch) | |
tree | 57abf9cbf0c48a52195a1a7c6c9b2bf44a90b6f0 | |
parent | e76752cb838b6a9b6e33afa70b99e22912bcb5e7 (diff) | |
download | bin-6b1bf5c79ac30a54913078c7eb2039e1f6850b1e.tar.xz |
(s)sl: Use optipng to crunch the image sizes
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rwxr-xr-x | sl | 3 | ||||
-rwxr-xr-x | ssl | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -1,7 +1,7 @@ #!/usr/bin/env bash ## -# Create a screenshot using scrot, then dump it in ~/dumpdir for +# Create a screenshot using scrot, optipng it, then dump it in ~/dumpdir for # dumpwatch to upload it to the appropriate server. # # This script requires dumpwatch to already be running. @@ -16,5 +16,6 @@ fi file=$(mktemp -u XXXXXXXXXX.png) scrot "$TMPDIR"/"$file" +optipng "$TMPDIR"/"$file" mv "$TMPDIR"/"$file" "$HOME"/dumpdir/"$file" @@ -1,7 +1,7 @@ #!/usr/bin/env bash ## -# Create a screenshot using scrot, then dump it in ~/dumpdir for +# Create a screenshot using scrot, optipng it, then dump it in ~/dumpdir for # dumpwatch to upload it to the appropriate server. # # This script requires dumpwatch to already be running. @@ -16,5 +16,6 @@ fi file=$(mktemp -u XXXXXXXXXX.png) scrot -s "$TMPDIR"/"$file" +optipng "$TMPDIR"/"$file" mv "$TMPDIR"/"$file" "$HOME"/dumpdir/"$file" |