Pictag is a simple web photo gallery with automatic thumbnail generation and tagging capability. It's self-contained in a single file, uses the file system for gallery layout, and requires no stand-alone database (it uses SQLite) or no database at all.