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/global 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"]
# Turn on full screen mode
fullscreen=true
# 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=1
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.
Options given here override the defaults provided previously.
[[albums]]
folder="images/numbers"
order="sequence" # These are picked in sequence
[[albums]]
folder="images/atomic"
order="atomic" # These are "sticky"; they appear as a group, sequentially
[[albums]]
folder="images/paintings"
order="random" # These appear randomly
weight=2
When the slide show is generated, each image is taken from each album, chosen randomly, according the the given weights.
Notes
Running over ssh
export DISPLAY=:0
Fixing photo orientation
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?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file magic_lantern-0.0.6.tar.gz
.
File metadata
- Download URL: magic_lantern-0.0.6.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19b07d99c983bfa8ef2a7ac967f2557758cecfa7ea7da7037e6ae8a728a81f73 |
|
MD5 | c3fd8a0bb9d2488d968afc9b7a0d8fab |
|
BLAKE2b-256 | 7a30fb77ac229c10e49bdcf45c50fb046d325dc66e5003459bef285d3e6d4e36 |
File details
Details for the file magic_lantern-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: magic_lantern-0.0.6-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fc379b2f265b411106c189446ad2064974354e1f6b0e3d2ee2da9a246f317b3 |
|
MD5 | a875a331f5326d7e29f8b4a92eaeb428 |
|
BLAKE2b-256 | ab1729809cac05ac02d41223de1a517c36d1b23ff34d106f5967d10ce95c5f06 |