diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gencovers.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/gencovers.sh b/tools/gencovers.sh new file mode 100644 index 0000000..911a050 --- /dev/null +++ b/tools/gencovers.sh @@ -0,0 +1,13 @@ +for F in public/*/cover.jpg +do + echo Processing: $F + B=$(echo $F | sed s/.jpg//) + + convert -scale 200x200 $F $B.1x.png + mozjpeg -q 95 -outfile $B.1x.jpg $B.1x.png + rm -f $B.1x.png + + convert -scale 400x400 $F $B.2x.png + mozjpeg -q 90 -outfile $B.2x.jpg $B.2x.png + rm -f $B.2x.png +done |