Pibooth plugin to customize the final picture layout using Flowchart Maker.
Project description
pibooth-picture-template is a plugin for the pibooth application.
It permits to define the captures/texts positions and sizes using a template. The template file (XML based on mxGraphModel definition) can be easily created/edited using the free online diagram software Flowchart Maker.
Default templates can be found on GitHub:
pibooth.xml : the default layout of the pibooth pictures factory
fancy.xml : the default layout installed by this plugin
Below are examples of the pictures generated using the fancy.xml template (learn here how to Create a template):
Install
$ pip3 install pibooth-picture-template
Configuration
Here below the extra configuration options that can be added in the pibooth configuration:
[PICTURE]
# Pictures template path, it should contain 8 pages (4 capture numbers and 2 orientations)
template = picture_template.xml
Create a template
The steps below will show how to create a basic template file from scratch using the Flowchart Maker application.
This file may contain several templates to define the picture layout for 1 / 2 / 3 / 4 captures and 2 orientations (portrait and landscape).
Step 1: create a new file
Click on Create New Diagram. |
|
Choose a blank diagram. Modify the name of the diagram, it will be the name of the exported file. Click on Create. |
|
Select the appropriated paper size. A custom one can be defined in inches. |
Step 2: placeholder for captures
Choose a rectangle to define a capture placeholder. Other shapes have no effect and will be considered as rectangles. |
|
Resize the rectangle to fit the desired size. The rectangle can overflow the border of the page to make design effects. Up to 4 rectangles can be drawn. |
Step 3: placeholder for texts
Choose a text box to represent a text placeholder. |
|
Resize the text box to fit the desired size. Up to 2 text boxes can be drawn depending on the pibooth configuration. |
Step 4: picture resolution
Extra properties can be set to the template. Click on the button Edit Data (close to the paper size settings). Type dpi in the entry box and click on Add Property. |
|
By default a resolution of 600 DPI is used. It means that the picture size will be 2400x3600 pixels for a resolution of 4x6 inches. Set it to the desired value and click on Apply. |
Step 5: add new a template
Once the template is created. A new one can be defined for an other captures number or other orientation. Click on + to add a new page. |
|
The captures and texts placeholders can be numbered to define the order of the caputres/texts. Colored shapes give a better overview of the layout but they are not rendered on the final picture. |
Step 6: save the template file
Generate the XML file by clicking File, Export as, XML.... |
|
Click on Export (unselect Compressed if you want to edit the file manually later). |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file pibooth_picture_template-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: pibooth_picture_template-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 047f22a02c2898b1fd04a162cedbf0828c2188860e19fe8e12f3baf8bedee143 |
|
MD5 | e29b482f1338672d575f30bde2e51938 |
|
BLAKE2b-256 | 290f2c02b03b8dfaa3a2bf65180f14ae3a8217a55e7453fbc1aa516a2cede253 |