summaryrefslogtreecommitdiff
path: root/tools/scale.sh
blob: a54d41e0780e16d3a4b4c1efe5e9c6b73cc07097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mkdir -p output75
mkdir -p output150
for F in output300/*.png
do
	echo $F

	O=${F/300/75}
	gm convert $F -colorspace RGB -resize 25% -colorspace sRGB $O.tmp
	rm -f $O
	zopflipng -m $O.tmp $O
	rm -f $O.tmp

	O=${F/300/150}
	gm convert $F -colorspace RGB -resize 50% -colorspace sRGB $O.tmp
	rm -f $O
	zopflipng -m $O.tmp $O
	rm -f $O.tmp
done