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/extensions/zip.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/extensions/zip.py') diff --git a/lib/extensions/zip.py b/lib/extensions/zip.py index 280c2a14..e80bc34c 100644 --- a/lib/extensions/zip.py +++ b/lib/extensions/zip.py @@ -9,10 +9,10 @@ import tempfile from copy import deepcopy from zipfile import ZipFile -from inkex import Boolean from lxml import etree import pyembroidery +from inkex import Boolean from ..i18n import _ from ..output import write_embroidery_file @@ -28,7 +28,7 @@ class Zip(InkstitchExtension): # it's kind of obnoxious that I have to do this... self.formats = [] for format in pyembroidery.supported_formats(): - if 'writer' in format and format['category'] == 'embroidery': + if 'writer' in format and format['category'] in ['embroidery', 'color', 'image', 'stitch']: extension = format['extension'] self.arg_parser.add_argument('--format-%s' % extension, type=Boolean, dest=extension) self.formats.append(extension) -- cgit v1.2.3