Skip to main content

Templated HTML galleries based on in-photo metadata

Project description

Photoweb

Photoweb creates HTML galleries based on in-photo metadata, using flexible templates. What's different about it?

  • It's easy to add new photos; just drop them in the folder and re-run.
  • You don't have to track metadata; it comes from the photos themselves, using standard embedded metadata (EXIF, IPTC, XMP).
  • It includes specialized support for titles and descriptions from Apple Photos.
  • It's easy to modify the templates to make your photos look great.
  • It supports modern web features like dark mode, keyboard navigation, and responsive side-by-side layouts out of the box.

Installation

Photoweb needs Python.

It's easiest with pipx:

pipx install photoweb

Usage

To generate the HTML for a gallery, call it from the command line:

photoweb .

You can generate multiple galleries at once:

photoweb beach hawaii snow

When you first generate a gallery, you can specify the page title and description, which will be used in the template:

photoweb -p "At the Beach" -d "We went to the beach for a weekend. Fun!" .

The page metadata will be saved in a file (md.json) for use next time you run photoweb.

Creating and Using Templates

By default, the bundled default template will be used. You can edit this, or create new templates, using them with the -t option:

photoweb -t "my template" .

To bootstrap your own template, you can copy the default one:

photoweb --copy-templates ./my-custom-design

Templates are directories with the following files in them:

  • md.json - a configuration file
  • gallery.html - the overview page
  • detail.html - a single photo page
  • style.css - visual styling
  • photoweb.js - interactive logic (for keyboard navigation and zoom)

Take a look at the default template to get an idea of how to create your own.

Navigation and Shortcuts

When viewing a photo in the generated gallery:

  • Left/Right Arrow keys: Previous/Next photo.
  • Escape: Return to the gallery index.
  • Click/Tap: Toggle between fit-to-screen and full-size view.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

photoweb-0.5.2.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

photoweb-0.5.2-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file photoweb-0.5.2.tar.gz.

File metadata

  • Download URL: photoweb-0.5.2.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for photoweb-0.5.2.tar.gz
Algorithm Hash digest
SHA256 b7b2cc8483cab98c735201e642f1a91b1e3f1f6fd162e875e8b4c4872e966bb6
MD5 c7492dab06cca4b3ed0bda4ceaed81d7
BLAKE2b-256 5e29ff35e1cbd76f1a3f41a1806fdd73bcc4172d5e5b5d80858239219d07546e

See more details on using hashes here.

Provenance

The following attestation bundles were made for photoweb-0.5.2.tar.gz:

Publisher: publish.yml on mnot/photoweb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file photoweb-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: photoweb-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for photoweb-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 164eb0ae4b911768e6c14505c3d0f1a5a26e63d5e2b9cfd4ea1c068e82ddb902
MD5 a4d74d847a8c1f8e775eba539993611a
BLAKE2b-256 e1e7b43032395ce39dbae18180a2a7339c61ef62c339a3362aaf00299f1a5a4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for photoweb-0.5.2-py3-none-any.whl:

Publisher: publish.yml on mnot/photoweb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page