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

pip 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)

Configuration

You can provide a simple path to a collection of images, or you can supply a configuration file. See the example in tests.

The format is TOML. Comments are preceded by #.

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

# Exclude the given list of dir names from the album image search.  
exclude=["_archive","archive","old","_old"]

# Default interval if not otherwise specifed.  This is the delay between images in the slide show
interval=3

# Default weighting applied to each album
weight=21

The remainder of the file organises the slide show by 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 in the display sequence.

[[albums]]
order="sequence" # These are picked in sequence
folder="images/numbers"
weight=1

[[albums]]
order="atomic" # These are "sticky"; they appear as a group, sequencially
folder="images/atomic"
weight=1

[[albums]]
order="random" # These appear randomly 
folder="images/paintings"
weight=1

When the slide show is generated, an image is taken from each album, randomly. There is some control on this, based on provided weights.

Notes

Running over ssh

export DISPLAY=:0

Fixing photo orientation

ImageMagick

mogrify -auto-orient *.jpg

Fixing missing dates

e.g.:

exiftool -datetimeoriginal="2009:08:08 00:00:00" -overwrite_original -m *

What's with the name?

Magic lantern

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.4.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

magic_lantern-0.0.4-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magic_lantern-0.0.4.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for magic_lantern-0.0.4.tar.gz
Algorithm Hash digest
SHA256 03bb627da81e8a7f0c68424d44654f3b99e724d21a6012ceab60ad21bb770f15
MD5 7207a41195b6ac1f4a2b6da42c6dbb63
BLAKE2b-256 67c0cebbb034ef4a331fe2bc128acdeebf2232657fc354ea7087907b31b95c0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for magic_lantern-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1006e616e193a52becfe1993baaaf46b6da04eaf2d888ff133a4b6385490d955
MD5 2a843d487805330a9b5d62952a5d3ce1
BLAKE2b-256 80c64992ccc514698be4bda5a9bf5342838015eff5d13217157e467fb121723d

See more details on using hashes here.

Supported by

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