Create a gist now

Instantly share code, notes, and snippets.

Make a thumbnail gallery from a Lytro album.
#!/usr/bin/python3
import glob
import os.path
with open("gallery.html", 'w') as gallery:
for fn in glob.glob("*/thumbnail.jpg"):
gallery.write("<img src='{}' title='{}'>".format(fn, os.path.dirname(fn)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment