pix2.0/README.md

31 lines
964 B
Markdown
Raw Normal View History

2021-08-21 05:47:48 +00:00
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