summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/thumbnail.sh7
1 files changed, 7 insertions, 0 deletions
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