blob: 903c610d4bce818ad81b89de0e73a9ffaadc81da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/sh
tmp=/tmp/temp-pic.pnm
all="argentina austria czech-republic germany great-britain hungary israel
italy russia portugal sweden canada usa south-korea japan taiwan australia
romania denmark france estonia poland singapore bulgaria south-africa
netherlands chile ukraine greece finland switzerland croatia china
brazil spain iceland ireland denmark"
new=""
set -x
cd Flags
# for c in $all; do cp empty.png $c.pdf; done; exit
for c in $new
do
# For HTML version
giftopnm ../Raw-Flags/$c.gif | \
pnmscale -xsize 30 > $tmp
pnmpaste $tmp 1 1 ../Images/flag-background.pnm > $c.pnm
rm -f $tmp
# For web version
ppmtogif $c.pnm > $c.gif
# or cjpeg -optimize -quality 70 -outfile $c.jpg
# For PDF version (this coredumps. use empty file until fixed)
# pnmtopng -verbose $c.pnm > $c.png
cp ../Images/empty.png $c.pdf
# For TeX version
giftopnm ../Raw-Flags/$c.gif | \
pnmscale -xsize 30 | \
pnmtops -noturn > $c.eps
# For text version
echo -n "" > $c.txt
done
|