Skip to main content

A presentation tool for kiosks, digital signage, slideshows.

Project description

magic-lantern

A presentation tool for kiosks, digital signage, slideshows.

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

Installation

pip install magic-lantern

Usage

See

magic-lantern --help .

Configuration

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

Linux requirements

  • click
  • pygame
    • libsdl2-dev
    • python3-dev

Pygame

I had to install pygame to get the full image features.

To test if necessary, to this

python -c "import pygame;print(pygame.image.get_extended())"

If you get a failure, install per instructions:

#install dependencies
sudo apt-get install git python3-dev python3-setuptools python3-numpy python3-opengl \
    libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev \
    libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev \
    libtiff5-dev libx11-6 libx11-dev fluid-soundfont-gm timgm6mb-soundfont \
    xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic fontconfig fonts-freefont-ttf libfreetype6-dev

# Grab source
git clone git@github.com:pygame/pygame.git

# Finally build and install
cd pygame
python3 setup.py build
sudo python3 setup.py install

I also needed to install -U cython for the above to work. Your mileage may vary, depending on the state of the installed versions of these libraries.

Fixing images

Some notes on tweaking images if necessary.

ImageMagick

Fix photo orientation

mogrify -auto-orient *.jpg

Fix missing dates

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

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

Uploaded Source

Built Distribution

magic_lantern-0.0.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magic_lantern-0.0.1.tar.gz
  • Upload date:
  • Size: 31.5 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.1.tar.gz
Algorithm Hash digest
SHA256 2fe401bfe40ff0e4ef085602561e34f846cc00d99e25b2e5b1b8729817d8d0f9
MD5 24fb3acfa3b68efa6ed7f9bb9bef3346
BLAKE2b-256 10034ab12841250cb87e6554eb78f49d221dc25a6e1b7304d77a2247edea87a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for magic_lantern-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4817c4b9fa06391e2061530568bf57cdb2a63dc8558a269b7aa392aef469e534
MD5 b67a8a2e2c0435e1b089652878ffb77f
BLAKE2b-256 eefd01591cd4cd679b8fb6a9f88254e87fe61066e74cb9fd7d32d4015cfc11e1

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