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.
||7 months ago|
|output||7 months ago|
|templates||7 months ago|
|.flake8||7 months ago|
|.gitignore||7 months ago|
|LICENSE||7 months ago|
|README.md||7 months ago|
|pics2html.py||7 months ago|
The static site generator for pictures I wish I didn't have to write. If you don't care about exif, this most certainly pointless for you.
More details here.
- Install dependencies:
pip install Pillow==7.1.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.
python3 pics2tohtml.pyand 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.