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. A discreet
caption at the top gives its name and position in the list. Guests change the
template by swiping horizontally on the screen, by tapping the < > arrows
of the caption, or with the arrow keys. 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.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pibooth_template_chooser-2.0.0.tar.gz | 3.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pibooth_template_chooser-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 MB
Release files / pibooth_template_chooser-2.0.0.tar.gz
| Download URL | pibooth_template_chooser-2.0.0.tar.gz |
|---|---|
| Size | 3.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
086b87e8f5671da747f7fb38dd98835df44aa13c6c192c3a52a4511548484e2e
|
|
BLAKE2b-256 checksum How to use checksums |
97db88dcc67cccf1a8da1fae81867eb1cd58b094133e5aff38385cc8a3769d89
|
| 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.0.0-py3-none-any.whl
| Download URL | pibooth_template_chooser-2.0.0-py3-none-any.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d730f2c6d36dcfdaa6581a8f25261d7d92992c4e46ecc3d0b81c75c2333c67e
|
|
BLAKE2b-256 checksum How to use checksums |
7fbc19e037229661b31d66ccb4c69b66c542af6ba7c86c807fe1bfc1adf50ed3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|