summaryrefslogtreecommitdiff
path: root/tools/gencovers.sh
blob: 911a05095e1b924feb369cc42fe03eb433209c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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