#!/usr/bin/python import os, Image, cgi print """Content-Type: text/html

Aquileo | Panoramic Images """ l = [] for f in os.listdir("."): if not f.endswith(".jpg") and not f.endswith(".jpeg"): continue i = Image.open(f) if i.size[0]*1.0/i.size[1] > 2 and \ i.size[0] > 2000 and i.size[0] My %u Panoramas" % len(l) for link, f, w, h in l: print "

" % (cgi.escape(link), cgi.escape(f), w, h) print """


Special Photo Series

All Photo Series




"""