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=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.5.tar.gz
.
File metadata
- Download URL: magic_lantern-0.0.5.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 | 69e1a6dddf9b4a0c9efad3e1dbab799c08aa29db21a3a55d20a27568df0fbc06 |
|
MD5 | 81957e39ad48e7ed9b9997828c7a4c3e |
|
BLAKE2b-256 | 632245a02ffbe0e75200877be5c7caabd341293b7a488ef1a28bfe9fcd4092e0 |
File details
Details for the file magic_lantern-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: magic_lantern-0.0.5-py3-none-any.whl
- Upload date:
- Size: 12.2 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 | 89c479a32feac1bf715a89fa1558a132c74dac9adfd4487454bd2a75c424c21f |
|
MD5 | c2f0e4880dc6a6c1614696503674300b |
|
BLAKE2b-256 | 13303abcf0e859235e1f3d4e518d2bf1008999268e605ba03b60cb529a68df85 |