Pibooth插件使用Flowchart Maker自定义最终图片布局。

pibooth-picture-template的Python项目详细描述


Python 2.7+/3.6+PyPi packagePyPi downloads

pibooth-picture-templatepibooth应用程序的插件。在

它允许使用模板定义捕获/文本的位置和大小。模板文件 (基于mxGraphModel definition的XML) 可以使用免费的在线图表软件Flowchart Maker轻松创建/编辑。在

Flowchart Maker

GitHub上可以找到一组模板。在

fancy.xml 此插件自动将模板安装在~/.config/pibooth/picture_template.xml中。在

下面是用这个生成的图片(在这里学习如何Create a template):

fancy1_landscapefancy3_landscape
fancy2_landscapefancy4_landscape
^{tb2}$

安装

$ pip3 install pibooth-picture-template

配置

下面是pibooth配置中可用的新配置选项。 在第一次pibooth重新启动后,这些键及其默认值将自动添加到配置中。

^{pr2}$

注意

通过运行命令pibooth --config编辑配置。在

图片方向

如果所选的 在模板文件中找不到捕获编号。在

如果[PICTURE][orientation] = auto 规则:

  • 查找具有正确数量的捕获和具有相同方向的占位符的模板 而不是被抓。在
  • 找到具有正确捕获数的模板。在
  • 查找纵向模板

创建模板

下面的步骤将演示如何使用 Flowchart Maker应用程序。在

此文件可能包含多个模板来定义1的图片布局/ 2/3/4捕获和portrait/landscape方向。在

步骤1:创建新文件

step1_1_createClick on ^{tt12}$.
step1_2_blankChoose a blank diagram. Modify the name of the diagram, it will be the name of the exported file. Click on ^{tt13}$.
step1_3_sizeSelect the appropriated paper size. A custom one can be defined in inches.

注意

从现有文件开始可能更容易。单击Open Existing Diagram 加载位于~/.config/pibooth/picture_template.xml

步骤2:捕获的占位符

step2_1_rectangleChoose a rectangle to define a capture placeholder. Other shapes have no effect and will be considered as rectangles.
step2_2_rectangle_resizeResize 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步:文本占位符

step3_1_textChoose a text box to represent a text placeholder.
step3_2_text_resizeResize the text box to fit the desired size. Up to 2 text boxes can be drawn depending on the pibooth configuration.

第四步:图像分辨率

step4_1_propertyExtra 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}$.
step4_2_dpiBy 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:添加新模板

step5_1_new_templateOnce 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.
step5_2_numberingThe 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:保存模板文件

step6_1_xmlGenerate the XML file by clicking ^{tt22}$, ^{tt23}$, ^{tt24}$.
step6_2_exportClick on ^{tt25}$ (unselect ^{tt26}$ if you want to edit the file manually later).

注意

而不是每次要测试结果时运行pibooth 您的模板,使用命令pibooth-regen。它会再生的 使用新的 模板。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
尝试运行JFLAP。戴软呢帽的罐子23。Java正在抛出异常   无引用的java数组布尔复制   hibernate如何在java SE应用程序中使用JPA EntityManager   java如何使用ORMLite在SQLite中持久化JavaFX属性?   java无法将项目部署到GAE   java:谷歌地图维基百科层   java Resultset(getter/setter类)对象在第二次执行时未删除旧值   s中的java struts2:选择列表>请求的列表键“”作为集合/数组/映射/枚举/迭代器类型   java如何在Karaf 4.0.5中获得BaseDao中的entityManager?   java VSCode未从控制台读取西里尔文   java字体。createFromAsset()返回字体的空指针异常   java错误:将Android Studio从0.6.1更新到0.8.9后,没有合适的构造函数