From 30537163ab5cf80500994bb1cad82b9c240eb9a2 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 22 Jul 2021 12:22:07 +0200 Subject: Add original size covers to tool directories. --- tools/thumbnail.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tools/thumbnail.sh (limited to 'tools/thumbnail.sh') diff --git a/tools/thumbnail.sh b/tools/thumbnail.sh new file mode 100644 index 0000000..e4a10ee --- /dev/null +++ b/tools/thumbnail.sh @@ -0,0 +1,7 @@ +mogrify -resize 300x300 -format ppm */cover.jpg +for F in tools/*/cover.jpg +do + OUT=public/*$(dirname $F | sed 's,tools/,,;s/-.*//')* + echo Thumbnail $OUT/cover.jpg $F + djpeg $F | pnmscale -xysize 400 400 | mozjpeg -q 90 > $OUT/cover.jpg +done -- cgit v1.2.3