Minimal photo gallery +
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
zi f3c53283f8 first commit again 3 years ago
! first commit again 3 years ago
js first commit again 3 years ago
README.md first commit again 3 years ago
album.html first commit again 3 years ago
icon.png first commit again 3 years ago
index.html first commit again 3 years ago
pix.py first commit again 3 years ago
write_captionsJSON.py first commit again 3 years ago

README.md

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