Back to services

sigal

Yet another simple static gallery generator.

View alternatives to sigal
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: The official website (GitHub repository) page could not be retrieved this time. The content below is based on existing knowledge of the project, so please refer to the official repository and documentation for specific details.

Introduction

sigal (Simple Static Gallery Generator) is an open-source static gallery generator written in Python. It reads images and videos organized in directories, generates thumbnails and resized images, and then renders a purely static HTML gallery site from templates. The generated site needs no database and no server-side application, and can be deployed directly to any web server, object storage or static hosting platform.

Key Features

  • Directories as albums: The folder hierarchy of your source files is the album structure, and subdirectories become sub-albums.
  • Image processing: Generates resized images and thumbnails with Pillow, with configurable size and quality, and can read EXIF information.
  • Video support: Uses ffmpeg to transcode videos and generate video thumbnails.
  • Themes and templates: Uses Jinja2 templates and ships with several themes (such as colorbox, galleria and photoswipe). You can also create your own.
  • Metadata: Markdown files can be used to add titles, descriptions and other text to albums and images.
  • Plugin system: Functionality can be extended through plugins, for example adding watermarks, packaging downloads or adjusting images.
  • Parallel processing: Can use multiple processes to speed up the processing of large numbers of images.

Target Users and Use Cases

It suits users who don't want to maintain a dynamic gallery application (database, PHP, etc.) and just want a simple way to publish photos, such as photography enthusiasts, personal bloggers, teams who need to share event photos, and developers who like command-line workflows.

Core Strengths

  • Outputs purely static files, which is secure and lightweight, with low hosting costs.
  • Settings are managed in a configuration file, which makes version control and automated builds easy.
  • Your original images stay in local folders, so you are not locked into a platform.

Installation and Usage

Requires a Python 3 environment and can be installed with pip:

pip install sigal

Basic workflow:

sigal init          # Generate the configuration file sigal.conf.py
sigal build <source image directory> <output directory>   # Generate the static gallery
sigal serve         # Preview the generated result locally

Once generated, simply upload the output directory to a web server or static hosting service.

Technical Requirements

  • Python 3
  • Pillow (image processing)
  • ffmpeg (optional, for processing videos)

Notable Characteristics

sigal is a command-line tool and has no web upload interface or online admin panel. After adding new photos, you need to run the build command again to update the site, which suits a "organize locally, publish in batches" way of working.