Pibooth插件使用Flowchart Maker自定义最终图片布局。
pibooth-picture-template的Python项目详细描述
pibooth-picture-template是pibooth应用程序的插件。在
它允许使用模板定义捕获/文本的位置和大小。模板文件 (基于mxGraphModel definition的XML) 可以使用免费的在线图表软件Flowchart Maker轻松创建/编辑。在
在GitHub上可以找到一组模板。在
fancy.xml 此插件自动将模板安装在~/.config/pibooth/picture_template.xml中。在
下面是用这个生成的图片(在这里学习如何Create a template):
安装
$ pip3 install pibooth-picture-template
图片方向
如果所选的 在模板文件中找不到捕获编号。在
如果[PICTURE][orientation] = auto 规则:
- 查找具有正确数量的捕获和具有相同方向的占位符的模板 而不是被抓。在
- 找到具有正确捕获数的模板。在
- 查找纵向模板
创建模板
下面的步骤将演示如何使用 Flowchart Maker应用程序。在
此文件可能包含多个模板来定义1的图片布局/ 2/3/4捕获和portrait/landscape方向。在
步骤1:创建新文件
Click on ^{tt12}$. | |
Choose a blank diagram. Modify the name of the diagram, it will be the name of the exported file. Click on ^{tt13}$. | |
Select the appropriated paper size. A custom one can be defined in inches. |
注意
从现有文件开始可能更容易。单击Open Existing Diagram 加载位于~/.config/pibooth/picture_template.xml
步骤2:捕获的占位符
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. |
第3步:文本占位符
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. |
第四步:图像分辨率
Extra properties can be set to the template. Click on the button ^{tt16}$ (close to the paper size settings). Type ^{tt17}$ in the entry box and click on ^{tt18}$. | |
By default a resolution of ^{tt19}$ 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 ^{tt20}$. |
步骤5:添加新模板
Once the template is created. A new one can be defined for an other captures number or other orientation. Click on ^{tt21}$ to add a new page. | |
The captures and texts placeholders can be numbered to define the order of the captures/texts. Colored shapes give a better overview of the layout but they are not rendered on the final picture. |
步骤6:保存模板文件
Generate the XML file by clicking ^{tt22}$, ^{tt23}$, ^{tt24}$. | |
Click on ^{tt25}$ (unselect ^{tt26}$ if you want to edit the file manually later). |
注意
而不是每次要测试结果时运行pibooth 您的模板,使用命令pibooth-regen。它会再生的 使用新的 模板。在
- 项目
标签: