Skip to main content

emin — a simple builder of static Web galleries

emin makes static Web pages for presenting imagey things — photos, PDFs, graphs with thumbnails — with browsable thumbnails, previews, and links to the image/doc file proper.

A demo emin gallery screenshot

emin is primarily intended for making Web photo galleries for the sorts of people who don't want to install some PHP+MySQL+Node.js monstrosity just to put their photos online. On the assumption that many people will want to tweak their gallery's appearance, the output is customisable using the Cheetah templating engine. The only dependencies are Cheetah and the Python imaging library.

Supported image formats are JPEG, PNG, GIF, TIFF, PDF and EPS, with the latter three being converted to PNG for Web display. Image resizing, renaming and thumbnailing is supported, as is building a zip file to download the whole set. Large image sets can be split over several pages.

Usage

emin is extremely easy to use. If you have a directory imgs/ full of images, PDFs, or similar, just run

emin imgs/

and a new directory gallery/ will be created, containing the HTML gallery. You can view this locally with a web browser, e.g. firefox gallery/index.html, or upload it to a webserver and view there (usually without needing the index.html bit of the URL).

The output directory name can be changed with the -o flag, e.g.

emin imgs/ -o mywebdir/mygallery/

A full list of configuration options can be found by running emin -h. For example, to show all the images recursively found in the dir1/ directory tree and all the JPG files in dir2/ on a singl page, with a custom title and output location:

emin -r dir1/ dir2/*.jpg -z -1 -t "My special gallery" -o my/website/gallery/

Changes

  • 1.0.0, Aug 2026: change output dir spec to a -o flag, mark as stable.
  • 0.7.0, Aug 2026: gallery building from multiple files and (recursed) dirs.
  • 0.6.0, Aug 2026: template and JS from local pkg data, split CSS, add --cdn.
  • 0.5.0, Aug 2026: update templating to CT3 due to PyPI issues.
  • 0.4.0, Aug 2026: update to new TOML-based Python packaging and Py3.
  • 0.3.4, Apr 2013: add one-page and --exclude options.
  • 0.3.3, May 2011: declare new Cheetah and PIL dependencies.
  • 0.3.2, May 2011: first noted version, after several since 2008.

Metadata

Release files for emin 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for emin 1.0.0
File Size Uploaded
emin-1.0.0.tar.gz 40.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for emin 1.0.0
File Interpreter ABI Platform
emin-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 79.8 kB

Release files / emin-1.0.0.tar.gz

Download URL emin-1.0.0.tar.gz
Size 40.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9589c10bc2eed05075762991d353081b8fd45464d992eb4fcf54fb54e108e5e4
BLAKE2b-256 checksum
How to use checksums
bdaebf2ed94beef32fbeabb7ac5791dd0c3367dbb95a8a0e7cbaf7f03871982f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / emin-1.0.0-py3-none-any.whl

Download URL emin-1.0.0-py3-none-any.whl
Size 39.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae7c000f617fd938d287077f272ceef77596af957afb12b7d4db3f3f71816528
BLAKE2b-256 checksum
How to use checksums
679473cf194550ee3ade920dc3dd97b32cbd4a25b4519bf1da881f7277cab01f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.7.0

2 release files

0.5.0

2 release files

0.4.0

1 release file

0.3.7

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page