px2html
The static site generator for pictures based on pics2html.
Usage
- Install dependencies:
pip install Pillow==8.3.2 jinja2 feedgenerator
. - Put all pictures in output/pictures/. The name must be yyyy-mm-dd-title.jpg.
Failure to abide will surely make the parser unhappy. And you don't want to
make it unhappy. If you can avoid to use SMALL_IMAGE_WORD (as defined in the
python script) in the title, it's probably better. Better as in otherwise it
may not do what you thought. But the good news is you "can" use dashes instead
of spaces in the title!
😬 - Edit global var at the top of pics2html.py.
- Run
python3 pics2tohtml.py
and let the magic happen. - It will create smaller pictures if they're bigger than the threshold, so it may take some time the first time.
- It will output all the html files so you just have to ship the whole dir.