tests
[imago.git] / test / html.py
diff --git a/test/html.py b/test/html.py
new file mode 100755 (executable)
index 0000000..b713517
--- /dev/null
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+
+import sys
+
+print "<html>"
+print "<head>"
+print "<style>"
+print "pre {line-height: 80%;}"
+print "</style>"
+print "</head>"
+
+print "<body>"
+
+print "<h1>Imago test</h1>"
+
+for fl in sys.argv[1:]:
+    print "<div>"
+    print "<h2>" + fl[:-4] + ".jpg" + "</h2>"
+    print "<image src=\"" + fl[:-4] + ".jpg" + "\" width=\"600\" style=\"float: right;\" />"
+    print "<pre>"
+    for line in open(fl).readlines():
+        print line
+    print "</pre>"
+    print "<div style=\"clear: both;\"></div>"
+    print "</div>"
+
+print "</body>"
+print "</html>"