Inital upload

This commit is contained in:
2026-07-09 01:49:59 +02:00
parent 3bf503d9eb
commit d9927618f5
32 changed files with 384 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
"""
Generate `images/manifest.json` from the files present in the images/ folder.
Run this in the project root to refresh the manifest after adding/removing photos.
"""
import os
import json
IMAGEDIR = os.path.join(os.path.dirname(__file__), '..', 'images')
IMAGEDIR = os.path.abspath(IMAGEDIR)
def main():
exts = ('.jpg', '.jpeg', '.png', '.webp', '.gif')
files = [f for f in sorted(os.listdir(IMAGEDIR)) if f.lower().endswith(exts)]
out = os.path.join(IMAGEDIR, 'manifest.json')
with open(out, 'w', encoding='utf-8') as fh:
json.dump(files, fh, indent=2)
print(f'Wrote {len(files)} entries to {out}')
if __name__ == '__main__':
main()