From 534be1edea2f4829f7c2f4e3fed09cde4de45a17 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Mon, 26 Oct 2020 13:40:18 -0700 Subject: [PATCH] Just use `convert` in thumbnail script --- gen_thumbnail.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gen_thumbnail.sh b/gen_thumbnail.sh index 669b9623..57a61929 100755 --- a/gen_thumbnail.sh +++ b/gen_thumbnail.sh @@ -1,12 +1,9 @@ #!/bin/bash -ex INPUT=$1 -OUTPUT_RESIZED=`dirname $1`/cover_front_thumbnail_tmp.png OUTPUT_COMPRESSED=`dirname $1`/cover_front_thumbnail.jpg if [[ -e "$OUTPUT_COMPRESSED" ]]; then echo "$OUTPUT_COMPRESSED already exists" exit 0 fi echo "CONVERTING $INPUT" -convert $INPUT -quality 100 -resize 256 -density 72x72 $OUTPUT_RESIZED -./guetzli/bin/Release/guetzli $OUTPUT_RESIZED $OUTPUT_COMPRESSED -rm $OUTPUT_RESIZED +convert $INPUT -quality 85 -resize 256 -density 72x72 $OUTPUT_COMPRESSED