faster gridf, cancel scaling
[imago.git] / test / html.py
1 #!/usr/bin/env python
2
3 import sys
4
5 print "<html>"
6 print "<head>"
7 print "<style>"
8 print "pre {line-height: 80%;}"
9 print "</style>"
10 print "</head>"
11
12 print "<body>"
13
14 print "<h1>Imago test</h1>"
15
16 for fl in sys.argv[1:]:
17     print "<div>"
18     print "<h2>" + fl[:-4] + ".jpg" + "</h2>"
19     print "<image src=\"" + fl[:-4] + ".jpg" + "\" width=\"600\" style=\"float: right;\" />"
20     print "<pre>"
21     for line in open(fl).readlines():
22         print line
23     print "</pre>"
24     print "<div style=\"clear: both;\"></div>"
25     print "</div>"
26
27 print "</body>"
28 print "</html>"