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.0

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.0
File Size Uploaded
pibooth_template_chooser-2.1.0.tar.gz 3.1 MB Details

Built distribution (wheel)

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

Total release size: 6.2 MB

Release files / pibooth_template_chooser-2.1.0.tar.gz

Download URL pibooth_template_chooser-2.1.0.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
9bee09e3afd2d7917fc72b1873ea4ac3d19c7567bab6380fc415385c500b64b2
BLAKE2b-256 checksum
How to use checksums
d803c4af048f268bc9d529f8fc67f71cfbf1bd84c6055b5505a55d11d749060f
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.0-py3-none-any.whl

Download URL pibooth_template_chooser-2.1.0-py3-none-any.whl
Size 3.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
31c97de716d2b5e81ecd3a7635272476bb8c97ecbe134aa70b0af1d3c9523173
BLAKE2b-256 checksum
How to use checksums
6541611e61d094448eca37cbd7fa8513dc2d94340a53bb79705d42912272886a
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.0 This release

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