Skip to main content

Create image galleries with Sphinx. No external JS dependency.

Install

If you’re using a virtualenv, just:

pip install sphinx-galleria

Using

Add ‘sphinx_galleria’ in the list of extensions in your source.conf file.

Just use the galleria directive like this:

.. galleria:: imagefile1 imagefile2  images*.jpg
   :galleria: (optional) Name of gallery - node level
   :alt: (optional) A long description - image level
   :title: (optional) Title of image - image level
   :thumbsize: (optional) Image size (defaults to "100x100") - image level
   :width: Width of image (in pixel or percentage or with unit, default auto) - node level
   :height: (optional) Height of image (in pixel or with unit) - node level
   :align: Align to 'right', 'left' or 'center' (default to center) - node level
   :hide_title: Flag - hide title under image (not in dialog) - image level
   :hide_alt: Flag - hide alternative text under image - image level
   :no_transition: Flag - avoid transition effect - node level
   :timer: (optional) Go to next image each timer seconds
   :class: (optional) HTML class for gallery - node level

Image level options are same for all images defined by the directive. If you need separated descriptions and titles, just use the directive several times with the same galleria name. In this case, node level options must be defined only once.

Thumbnail size is in “WIDTHxHEIGHT” format, resulting image keeps ratio. Be careful with tumbnail size, the browser loads all thumbnails of a gallery when loading the page. It can take some time with really big galleries.

The first image of a gallery is displayed if javascript is not available on the browser.

Licensing

sphinx-galleria is under EUPL-1.2.

Metadata

Release files for sphinx_galleria 2.1.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 sphinx_galleria 2.1.0
File Size Uploaded
sphinx_galleria-2.1.0.tar.gz 35.5 kB Details

Built distribution (wheel)

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

Total release size: 72.7 kB

Release files / sphinx_galleria-2.1.0.tar.gz

Download URL sphinx_galleria-2.1.0.tar.gz
Size 35.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b52b924843800ca6f522dde7ed1f41cf9a11b6b589ee98abe009fee0c6fae65b
BLAKE2b-256 checksum
How to use checksums
081db6ea990ca7e8175f68908d713715cfdfcf2b3443663a250dfe23a70367e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / sphinx_galleria-2.1.0-py3-none-any.whl

Download URL sphinx_galleria-2.1.0-py3-none-any.whl
Size 37.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e7db232c4a6b1049e73bf010e6c9789f61db7f2785e42304f35e904a4870df9
BLAKE2b-256 checksum
How to use checksums
1aaf41fe1c06b59f68d94560148ad81dc185979a83f5c9f8a6964e2e015c6c55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.0

2 release files

1.1.0

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

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