]> pere.pagekite.me Git - text-free-culture-lessig.git/blob - images/compare-images
Notes: 219/222
[text-free-culture-lessig.git] / images / compare-images
1 #!/bin/sh
2
3 (
4 for png in *.png; do
5 svg="$(basename $png .png).svg"
6 nbsvg="nb/$(basename $png .png).svg"
7 echo "<p>$png</p>"
8 echo "<table>"
9 echo "<tr>"
10 echo "<td><img width=\"60%\" src=\"$png\"></td>"
11 if [ -e $svg ] ; then
12 echo "<td><img width=\"60%\" src=\"$svg\"></td>"
13 else
14 echo "<td></td>"
15 fi
16 if [ -e $nbsvg ] ; then
17 echo "<td><img width=\"60%\" src=\"$nbsvg\"></td>"
18 else
19 echo "<td></td>"
20 fi
21 echo "</tr>"
22 echo "</table>"
23 done
24 ) > compare.html