From 6b1bf5c79ac30a54913078c7eb2039e1f6850b1e Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Thu, 10 Sep 2015 14:16:08 +0200 Subject: (s)sl: Use optipng to crunch the image sizes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- sl | 3 ++- ssl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sl b/sl index c5145c0..a788d18 100755 --- a/sl +++ b/sl @@ -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" diff --git a/ssl b/ssl index b052033..21f438b 100755 --- a/ssl +++ b/ssl @@ -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" -- cgit v1.2.3-54-g00ecf