From 2134897db8f0893c8e9a64286eeb76c770790639 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 24 Jun 2025 04:38:06 +0200 Subject: 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. --- lib/output.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/output.py') 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')): -- cgit v1.2.3