Metadata-Version: 2.3
Name: magic-lantern
Version: 0.0.3
Summary: A presentation tool for kiosks, digital signage, slide shows.
Project-URL: Homepage, https://github.com/normanlorrain/magic-lantern
Author-email: Norman Lorrain <normanlorrain@gmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.12
Requires-Dist: click
Requires-Dist: exifread
Requires-Dist: pygame
Requires-Dist: pymupdf
Description-Content-Type: text/markdown

# magic-lantern
A presentation tool for kiosks, digital signage, slide shows.

Supports *png* and *jpg*.  *PDF* files are also supported; each page is internally exported to an image file.
## 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`.  


# Notes

## Running over ssh
```
export DISPLAY=:0
```

## Fixing photo orientation 
[ImageMagick](https://imagemagick.org/script/mogrify.php)

```
mogrify -auto-orient *.jpg
```

## Fixing missing dates
e.g.: 

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

## Origin of the name
[Magic lantern](https://en.wikipedia.org/wiki/Magic_lantern)