sphinxcontrib-images 1.0.1


pip install sphinxcontrib-images

  Latest version

Released: Jun 07, 2025


Meta
Author: Tomasz Czyż
Requires Python: >=3.9

Classifiers

Development Status
  • 4 - Beta

Environment
  • Console
  • Web Environment

Intended Audience
  • Developers

Operating System
  • OS Independent

Programming Language
  • Python
  • Python :: 3 :: Only
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13

Topic
  • Documentation

sphinxcontrib-images (formerly sphinxcontrib-fancybox).

Easy thumbnails in Sphinx documentation (focused on HTML).

Features

  • Show thumbnails instead of full size images inside documentation (HTML).

  • Ability to zoom/enlarge picture using LightBox2 (HTML).

  • Ability to group pictures

  • Download remote pictures and keep it in cache (if requested)

  • Support for other formats (latex, epub, … - fallback to image directive)

  • Easy to extend (add own backend in only few lines of code)

    • Add other HTML “preview” solution than LightBox2

    • Add better support to non-HTML outputs

    • Preprocess images

TODO

  • Make proper thumbnails (scale down images)

How to install?

Instalation through pip:

pip install sphinxcontrib-images

or through the GitHub:

pip install git+https://github.com/sphinx-contrib/images

Next, you have to add extension to conf.py in your Sphinx project.

extensions = [
          …
          'sphinxcontrib.images',
          …
          ]

How to use it?

Example:

.. thumbnail:: picture.png

You can also override the default image directive provided by Sphinx. Check the documentation for all configuration options.

Questions and suggestions

If you have any suggstions, patches, problems - please use GitHub Issues.

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
requests (<3,>2.2)
sphinx (>=5.0)