Photo gallery maintenance
Photo gallery maintenance
The gallery uses pre-generated WebP previews (maximum 800 px on either edge, quality 80) while the link always points to the unchanged original.
To add a photo, place the original directly in assets/images/photos/, add its entry to _data/photos.yml, then open a pull request from a branch in this repository. The thumbnail workflow generates previews and updates the manifest on that branch. Wait for the generated commit before merging. For direct commits to the default branch, generate and include the previews locally first:
python -m pip install Pillow==11.3.0
python scripts/generate_photo_thumbnails.py
git add assets/images/photos/thumbnails/ _data/photo_thumbnails.json
The gallery falls back to the original for any photo absent from the thumbnail manifest. A workflow run can also be started manually on a non-default branch.