summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-06-26 22:51:15 +0200
committerGitHub <noreply@github.com>2024-06-26 22:51:15 +0200
commit5f23dea1a1fa1708cc66d6aa951970bbd927515f (patch)
tree859216fde8fcba8ebbec05cf2323f7a7dee8a4a8 /templates
parentd2e571a3fbfa82baa1c0411fb4ee277692f574d3 (diff)
Make PNG (simple/realistic) and threadlist available in export file formats (#3019)
Diffstat (limited to 'templates')
-rw-r--r--templates/png_realistic.xml16
-rw-r--r--templates/png_simple.xml30
-rw-r--r--templates/thread_list.xml16
-rw-r--r--templates/zip.xml12
4 files changed, 73 insertions, 1 deletions
diff --git a/templates/png_realistic.xml b/templates/png_realistic.xml
new file mode 100644
index 00000000..93f0ee2b
--- /dev/null
+++ b/templates/png_realistic.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>PNG file output (realistic)</name>
+ <id>org.{{ id_inkstitch }}.png_realistic</id>
+ <output is_exported="true">
+ <extension>.png</extension>
+ <mimetype>image/png</mimetype>
+ <filetypename>{{ menu_inkstitch }}: Portable Network Graphics (Realistic) [IMAGE] (.png)</filetypename>
+ <filetypetooltip>Create a PNG file with a realistic embroidery representation using Ink/Stitch</filetypetooltip>
+ <dataloss>true</dataloss>
+ </output>
+ <param name="extension" type="string" gui-hidden="true">png_realistic</param>
+ <script>
+ {{ command_tag | safe }}
+ </script>
+</inkscape-extension>
diff --git a/templates/png_simple.xml b/templates/png_simple.xml
new file mode 100644
index 00000000..be12e784
--- /dev/null
+++ b/templates/png_simple.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>embroidery PNG file output</name>
+ <id>org.{{ id_inkstitch }}.png_simple</id>
+ <output is_exported="true">
+ <extension>.png</extension>
+ <mimetype>image/png</mimetype>
+ <filetypename>{{ menu_inkstitch }}: Portable Network Graphics (Simple) [IMAGE] (.png)</filetypename>
+ <filetypetooltip>Create a PNG file with a simple line embroidery representation using Ink/Stitch</filetypetooltip>
+ <dataloss>true</dataloss>
+ </output>
+ <param name="extension" type="string" gui-hidden="true">png_simple</param>
+ <param name="notebook" type="notebook">
+ <page name="settings" gui-text="Settings">
+ <param name="line_width" type="float" precision="2" min="0.01" max="5" gui-text="Line width (mm)">0.3</param>
+ </page>
+ <page name="info" gui-text="Help">
+ <label appearance="header">PNG file export</label>
+ <label>Export embroidery design to PNG</label>
+ <spacer />
+ <separator />
+ <spacer />
+ <label>Read more on our webiste</label>
+ <label appearance="url">https://inkstitch.org/docs/import-export/</label>
+ </page>
+ </param>
+ <script>
+ {{ command_tag | safe }}
+ </script>
+</inkscape-extension>
diff --git a/templates/thread_list.xml b/templates/thread_list.xml
new file mode 100644
index 00000000..3da67ae1
--- /dev/null
+++ b/templates/thread_list.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>embroidery TXT file output</name>
+ <id>org.{{ id_inkstitch }}.thread_list</id>
+ <output>
+ <extension>.txt</extension>
+ <mimetype>text/plain</mimetype>
+ <filetypename>{{ menu_inkstitch }}: Threadlist [COLOR] (.txt)</filetypename>
+ <filetypetooltip>A list of thread colors</filetypetooltip>
+ <dataloss>true</dataloss>
+ </output>
+ <param name="extension" type="string" gui-hidden="true">thread_list</param>
+ <script>
+ {{ command_tag | safe }}
+ </script>
+</inkscape-extension>
diff --git a/templates/zip.xml b/templates/zip.xml
index ddaefe5b..448819bc 100644
--- a/templates/zip.xml
+++ b/templates/zip.xml
@@ -17,10 +17,13 @@
<label>Output formats:</label>
{%- for format, description, mimetype, category in formats %}
{%- if category != "vector" and category != "debug" %}
- <param name="format-{{ format }}" type="boolean" _gui-text=".{{ format | upper }}: {{ description }}">false</param>
+ <param name="format-{{ format }}" type="boolean" gui-text=".{{ format | upper }}: {{ description }}">false</param>
{%- endif %}
{%- endfor %}
<param name="format-threadlist" type="boolean" gui-text=".TXT: Threadlist [COLOR]">false</param>
+ <param name="format-png_realistic" type="boolean" gui-text=".PNG: Portable Network Graphics (Realistic) [COLOR]">false</param>
+ <param name="format-png_simple" type="boolean" gui-text=".PNG: Portable Network Graphics (Simple) [COLOR]">false</param>
+ <param name="png_simple_line_width" type="float" precision="2" min="0.01" max="5" gui-text="Line width (mm)" indent="4">0.3</param>
<param name="format-svg" type="boolean" gui-text=".SVG: Scalable Vector Graphic">false</param>
<param name="extension" type="string" gui-hidden="true">zip</param>
</page>
@@ -32,6 +35,13 @@
<param name="y-repeats" type="int" min="1" max="20" gui-text="Vertical repeats">1</param>
<param name="y-spacing" type="float" min="-1000" max="1000" gui-text="Vertical spacing (mm)">100</param>
</page>
+ <page name="info" gui-text="Help">
+ <label appearance="header">Zip File Export</label>
+ <label>Export multiple embroidery file formats at once.</label>
+ <separator />
+ <label>Read more on our webiste:</label>
+ <label appearance="url">https://inkstitch.org/docs/import-export/#batch-export</label>
+ </page>
</param>
<script>
{{ command_tag | safe }}