Skip to main content

pibooth-template-chooser

Pibooth plugin letting guests choose the picture template on the wait screen.

The wait screen shows the selected template in place of the last picture: the first capture of the last picture assembled again in the single photo page of the template, or grey photo holders until a picture exists. Guests change the template by swiping horizontally on the screen or with the arrow keys; a discreet caption at the top then gives its name and position in the list for a few seconds, with < > arrows that can be tapped while it is displayed. A missed swipe does nothing, only a tap keeps its pibooth meaning (taking a picture). The chosen template is used for the next pictures; the saved and printed picture is not changed.

The templates are draw.io files, drawn as for the pibooth-picture-template plugin, whose code this plugin now includes: uninstall it (pip uninstall pibooth-picture-template), both declare [PICTURE] template.

Configuration

[PICTURE]
# Picture template path (draw.io file), empty for the standard layout
template =

[TEMPLATE_CHOOSER]
# Directory of the picture templates guests choose from on the wait screen, empty for the templates shipped with the plugin
directory =

Every *.xml file of the directory is offered. The template set in [PICTURE] template is selected at startup when it belongs to the directory.

Shipped templates

The plugin comes with nine templates, each with a single photo page and a four photos page on a 100x148 mm postcard at 300 dpi: photomaton (two strips of four photos), hollywood, anniversaire-noir-or, art-deco-bleu-or, mariage-coeur-rose, mariage-beige-floral, mariage-floral-or, mariage-mauve and vintage-carte-postale.

To change them, copy the templates and fonts directories of the package next to each other, edit the templates in draw.io and set directory to the copied templates directory.

Their fonts are under the SIL Open Font License, see the OFL-*.txt files: Great Vibes, Lobster, Montserrat and Playfair Display (the unmodified upstream variable font, as its Reserved Font Name forbids renaming a modified version).

The tools directory holds the scripts that generated the templates: make_template.py OUT.xml for photomaton and make_themes.py FONT_DIR OUT_DIR for the themes.

Template style

A template may come with a style file of the same name (hollywood.xml and hollywood.cfg) giving the name displayed in the caption and the style of the texts, which replaces the [PICTURE] values while the template is selected:

[TEMPLATE]
name = Hollywood
text_colors = ((255, 255, 255), (230, 200, 205))
text_fonts = ('../fonts/Montserrat-Bold.ttf', '../fonts/Montserrat-SemiBold.ttf')
text_alignments = center

Relative font paths are resolved from the style file directory. Without a style file, the name comes from the file name and the [PICTURE] style is kept.

The texts themselves (footer_text1, footer_text2) stay in pibooth.cfg, shared by all the templates of an event.

Tests

pip install pytest
SDL_VIDEODRIVER=dummy pytest

License

GPLv3, as the picture template code comes from pibooth-picture-template by Vincent Verdeil and Antoine Rousseaux.

Metadata

Release files for pibooth-template-chooser 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pibooth-template-chooser 2.1.1
File Size Uploaded
pibooth_template_chooser-2.1.1.tar.gz 3.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pibooth-template-chooser 2.1.1
File Interpreter ABI Platform
pibooth_template_chooser-2.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 MB

Release files / pibooth_template_chooser-2.1.1.tar.gz

Download URL pibooth_template_chooser-2.1.1.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
b9872c0627ed5bfe644ae97c5b6f4ed54b4c883614093523f022a6b2cc8c990f
BLAKE2b-256 checksum
How to use checksums
ea9178032f487387d66ab6c89968e049edc7a0223bb7d1bedae16cb589ee20c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / pibooth_template_chooser-2.1.1-py3-none-any.whl

Download URL pibooth_template_chooser-2.1.1-py3-none-any.whl
Size 3.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7f281a952fef2cdc25ea5cfe1072b336ed12bc11eb0acb7d872192eedd1346c8
BLAKE2b-256 checksum
How to use checksums
aea54d9c843a4317c954ea061ec02429c163c52b65c87030d13edfb9955e0904
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page