From ab8c87928b39e7874c09a75b2f9badd3a46719b2 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Fri, 24 Jun 2022 17:11:52 +0200 Subject: 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 --- lib/inx/outputs.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/inx/outputs.py') 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'] -- cgit v1.2.3