Minimal photo gallery +
! | ||
js | ||
album.html | ||
icon.png | ||
index.html | ||
pix.py | ||
README.md | ||
write_captionsJSON.py |
Some changes to a minimal photo gallery (pix)
- works with jpg (ignores png/other)
- tap for previous/next
- photos can have user defined captions
- album titles
Create folders ("albums") here, copy images into these folders.
To generate images (1080, 256), create HTML, run python3 pix.py
pix.py to be run again if edit album.html and index.html, change the CSS, enable/disable captions, etc. or if photos are added/delete/renamed.
Captions -> to create json template using album and file names, run python3 write_captionsJSON.py
-> generates captions.json in js folder {album/image.ext: "enter-caption-here", ...} -> open captions.json in txt editor to edit / enter captions
- write_CaptionsJSON.py can be run again in case files are added/deleted
The image viewer supports the following keyboard shortcuts:
Escape Back
Left Previous
Space Play/Pause
Right Next
Minus 1080p
Plus Original