-
-
Save AstraLuma/890ce225276ab4c43af8 to your computer and use it in GitHub Desktop.
Make a thumbnail gallery from a Lytro album.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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