This repository includes a small generator script that scans the photos/ folder
and emits gallery_data.json which gallery.html will load to render albums
and images dynamically.
How to use (Windows PowerShell):
- Make sure you have Python installed and
pythonis on your PATH. - From the repository root (where
gallery.htmllives) run:
python .\generate_gallery.py- This will create
gallery_data.jsonwith entries for each subfolder inphotos/. Opengallery.htmlin a browser (or serve the folder with a simple static server) to view the galleries.
Notes:
- The script finds files under
photos/<album>/with common image extensions (.jpg, .png, .webp, etc.) and writes relative paths that work from thegallery.htmlpage. - If you add/remove photos, re-run the script to refresh
gallery_data.json.