btbytes / jallery

jallery, the gallery generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jallery - the static gallery generator

jallery (pron. gallery) is a static picture gallery generator.

I mostly wrote this as way to convert a couple of scripts I wrote to publish one-page galleries on my site. Eg: Bangalore Literature Festival 2023. I don't expect anyone to find this terribly novel, maybe somewhat useful if you read the code, and find my approach is something that suits you.

What this code does now:

  1. for a given directory full of images already at publication resolution. (cameras these days take pictures at very high resolution, which I don't display in that resolution in any of the galleries i've published so far).
  2. prepare will put empty text files like title.txt, description.txt, footnote.txt, which then you will edit with a text editor. You can use markdown to write in those files.
  3. the prepare command will also generate a .txt file for every "image" (eg: .png, .jpg) found in the gallery directory. edit these files to add a description for each image.
  4. run generate command to get a gallery.html in the directory
jallery
usage: Jallery - A simple static gallery generator [-h] {prepare,generate} ...

positional arguments:
  {prepare,generate}

options:
  -h, --help          show this help message and exit

About

jallery, the gallery generator

License:MIT License


Languages

Language:Python 84.2%Language:HTML 15.8%