Skip to content

danieljakots/pics2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pics2html

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.

Why this?

More details here.

Usage

  1. Install dependencies: pip install Pillow==8.3.2 jinja2 feedgenerator.
  2. 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! 😬
  3. Edit global var at the top of pics2html.py.
  4. Run python3 pics2tohtml.py and let the magic happen.
  5. It will create smaller pictures if they're bigger than the threshold, so it may take some time the first time.
  6. It will output all the html files so you just have to ship the whole dir.

About

Static website generated for my pictures - https://chown.me/blog/pics2html

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages