Skip to content

Instantly share code, notes, and snippets.

@astronouth7303 astronouth7303/mkgallery Secret
Created Oct 18, 2014

What would you like to do?
Make a thumbnail gallery from a Lytro album.
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
You can’t perform that action at this time.