Skip to main content

A presentation tool for kiosks, digital signage, slide shows.

Project description

magic-lantern

A presentation tool for kiosks, digital signage, slide shows.

Supports png and jpg. PDF files are also supported; each page is internally converted to an image file.

You can specify a single directory/folder for the images, or organise them into folders and provide a configuration file to control the sequence of images. This sequence is called the "slide show".

Installation

Windows

pipx, via Scoop

scoop install pipx
pipx ensurepath
pipx install magic-lantern

Debian

pipx install magic-lantern

Usage

See

magic-lantern --help

When running, use the following keys to control the slideshow:

  • space bar: play / pause
  • q: quit
  • p, left arrow: previous image
  • n, right arrow: previous image
  • y, display of year (on/off)

Reset

To reload the configuration and slide show:

pkill -USR1 magic-lantern

This is useful if you have the app running automatically (e.g. Gnome autostart) and have updated the slide show.

Configuration

You can provide a simple path to a collection of images...

magic-lantern /usr/share/backgrounds

... or you can supply a configuration file:

magic-lantern -c ~/slideshow/example.toml

See example.toml.

The configuration file can specify multiple albums to include in the slideshow. The behaviour of each album can be unique. The file contains two sections:

  • The first part of the file contains any default/global values. They apply to all the subsequent albums if not overridden. These are optional but are included in the example.

  • The remainder of the file defines the albums. Each album points to a directory containing images to include in the slide show. Images are added automatically. Images can be separated into different albums depending on their intended behaviour. Options given here override the defaults provided previously.

TOML configuration keys

This is a list of keys, their scope, etc., defined in the configuration file:

exclude

  • scope: global
  • type: list of strings
  • value: list the folders to exclude from the image search
  • default: empty list. All png/jpg/pdf files will be included.

fullscreen

  • scope: global
  • type: bool
  • value: turn on full-screen mode
  • default: false

weight

  • scope: global and album

  • type: integer

  • value: give the weight to an album when choosing them randomly. When the slide show is generated, each image is taken from each album, chosen randomly, according the the given weights.

  • default: 1

interval

  • scope: global and album
  • type: integer
  • value: give the time in seconds after a slide before the next one.
  • default: 5

[[albums]]

In TOML this specifies an array of key/value pairs. Each of these entries define each album being configured.

folder

  • scope: album
  • type: string
  • value: points to the path of the directory containing the album. Can be an absolute path, or relative to the configuration file.

order

  • scope: album
  • type: one of
    • "sequence": photos in this album are picked in sequence
    • "random": photos in this album are picked randomly
    • "atomic": photos in this album are picked in sequence, and grouped together. Once each image has been displayed, the slide show resumes with the next.
  • value: defines the behaviour of the slideshow for each album.
  • default: "sequence"

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

magic_lantern-0.0.18.tar.gz (12.0 MB view details)

Uploaded Source

Built Distribution

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

magic_lantern-0.0.18-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file magic_lantern-0.0.18.tar.gz.

File metadata

  • Download URL: magic_lantern-0.0.18.tar.gz
  • Upload date:
  • Size: 12.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for magic_lantern-0.0.18.tar.gz
Algorithm Hash digest
SHA256 255978d3be5572e2c45e5a7f933ae26376609f293ea8000fb804b99fb1d743f7
MD5 3791676dbeef912780c6d8473b78aa30
BLAKE2b-256 09a902008a25a1f184dda9b375c8fc32ce4f84fa831718d0f36d1e880abc812d

See more details on using hashes here.

File details

Details for the file magic_lantern-0.0.18-py3-none-any.whl.

File metadata

  • Download URL: magic_lantern-0.0.18-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for magic_lantern-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 33c9c80d57b551dabe0ffe51a592bd70aa9e9fa88d09bd9d132c715bb8b809cd
MD5 4a95b939386641e590cfdda4ac7279f7
BLAKE2b-256 bb639880283ccdca51cea31824e7f522c1aea94c9cc2f9fc25542af0796ce3dc

See more details on using hashes here.

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