summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-06-24 04:38:06 +0200
committerGitHub <noreply@github.com>2025-06-23 22:38:06 -0400
commit2134897db8f0893c8e9a64286eeb76c770790639 (patch)
tree97b1a66de4d668d51c87c4cc785c773583756b22 /lib
parentf0146b64230fb7000a025f658e17a8cf89d9c487 (diff)
fix: set trims=True for pyembroidery.write (#3821)
While the trims default was changed in pyembroidery back in 2019 with c4242f0f940c86766c0c27f65b5a09641b0af4bd that change only made it into the used Ink/Stitch fork of pyembroidery in 2022 with 28534cf1a8d692687d9f40c3be622e0945b5a2ee. So trims have been broken in Ink/Stitch since v2.2.0. Fixes #2813.
Diffstat (limited to 'lib')
-rw-r--r--lib/output.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/output.py b/lib/output.py
index a16b4018..1b9c62a4 100644
--- a/lib/output.py
+++ b/lib/output.py
@@ -87,6 +87,9 @@ def write_embroidery_file(file_path, stitch_plan, svg, settings={}):
# This forces a jump at the start of the design and after each trim,
# even if we're close enough not to need one.
"full_jump": True,
+
+ # defaults to False in pyembroidery (see https://github.com/EmbroidePy/pyembroidery/issues/188)
+ "trims": True,
})
if not file_path.endswith(('.col', '.edr', '.inf')):