From 2ef325d3dd5900d7681fce8f0ffc2450b493b363 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 14 Nov 2022 14:20:33 +0100 Subject: Tweak layout to allow for square cover images. --- tools/gencovers.sh | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) (limited to 'tools') diff --git a/tools/gencovers.sh b/tools/gencovers.sh index a0ec53d..1ae2b90 100644 --- a/tools/gencovers.sh +++ b/tools/gencovers.sh @@ -1,18 +1,41 @@ -for F in public/*/cover.jpg +for F in public/*/cover.jpg public/*/cover.png do echo Processing: $F - B=$(echo $F | sed s/.jpg//) + B=$(echo $F | sed s/.jpg// | sed s/.png//) D=$(dirname $F) - convert -resize 200x200 $F $B.1x.png + PORTRAIT=$(convert $F -format '%[fx:w