Gallery: Fossilized Photo Galleries

Why?

Some reasons to try this:

Installation

First, clone this repository:

fossil clone https://code.pobblelabs.org/gallery

You'll need Python >= 3.8 and Pillow. You can install it system-wide, or in a virtualenv.

Run:

cd gallery
./g.py install

It will attempt to install Pillow, then configure the fossil repository to automatically serve the gallery.

Adding a gallery

Copy some photos to a directory. cd to the parent directory, then:

/path/to/gallery/g.py add some_directory

The images will be thumbnailed and saved as unversioned files in the repository.

If you add a text file called README.txt to the directory, it'll be picked up and included as a short description on the bottom of the gallery page.

To prevent the gallery from being listed on the /view page, add the --hidden flag. (Note: files won't be hidden, since anyone can access /uvlist)

Serving the galleries

Upload the repository to a server and serve it like any other fossil repo

Viewing the galleries

Visit /view to see the list of galleries.