From 74bf5b55833402b05072cd6ace6fa8a9fc7f2235 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 30 Oct 2023 15:11:54 +0100 Subject: Only update changed covers. --- tools/gencovers.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/gencovers.sh') diff --git a/tools/gencovers.sh b/tools/gencovers.sh index 8d4eacd..5d4d244 100644 --- a/tools/gencovers.sh +++ b/tools/gencovers.sh @@ -4,6 +4,9 @@ do B=$(echo $F | sed s/.jpg// | sed s/.png//) D=$(dirname $F) + if [ $F -nt $D/thumbnail.jpg ] + then + PORTRAIT=$(convert $F -format '%[fx:w $D/thumbnail.jpg rm -f $D/thumbnail.png + + fi done -- cgit v1.2.3