summaryrefslogtreecommitdiff
path: root/lib/inx/outputs.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2022-06-24 17:11:52 +0200
committerGitHub <noreply@github.com>2022-06-24 17:11:52 +0200
commitab8c87928b39e7874c09a75b2f9badd3a46719b2 (patch)
tree11a934b028f8a5dab34e4710d43ab895e0510fbb /lib/inx/outputs.py
parent3985b5ac719cb699b1539bce0bc7376970702b4d (diff)
Update pyembroidery (#1683)
Embroidery formats (read) .hus: Husqvarna Embroidery Format .zhs: Zeng Hsing Embroidery Format Color formats (read & write) .col : Color format. .edr : Color format. .inf : Color format. Stitch formats (read & write) .pmv : Brother Stitch Format. Image (write) .png : Portable Network Graphic (line art) G-Code The export file format is not .txt anymore but .gcode Bug fixes
Diffstat (limited to 'lib/inx/outputs.py')
-rw-r--r--lib/inx/outputs.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/inx/outputs.py b/lib/inx/outputs.py
index 1ac1daf8..3a4ac9d0 100644
--- a/lib/inx/outputs.py
+++ b/lib/inx/outputs.py
@@ -12,7 +12,13 @@ def pyembroidery_output_formats():
for format in pyembroidery.supported_formats():
if 'writer' in format:
description = format['description']
- if format['category'] != "embroidery":
+ if format['category'] == "color":
+ description = "%s [COLOR]" % description
+ elif format['category'] == "image":
+ description = "%s [IMAGE]" % description
+ elif format['category'] == "stitch":
+ description = "%s [STITCH]" % description
+ elif format['category'] != "embroidery":
description = "%s [DEBUG]" % description
yield format['extension'], description, format['mimetype'], format['category']