summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2022-07-08 07:33:45 +0200
committerGitHub <noreply@github.com>2022-07-08 07:33:45 +0200
commit28534cf1a8d692687d9f40c3be622e0945b5a2ee (patch)
treefe2707c884cdd359232d5cca47fdd1aa0f4208dc /lib
parent8d9a469ae2c289d2fde46c64d6d6d37e27dc9520 (diff)
linux scipy/linalg libraries: ELF (#1714)
* do not strip any scipy library for linux * apply settings to debug formats * use fixed pyembroidery Co-authored-by: Lex Neva
Diffstat (limited to 'lib')
-rwxr-xr-xlib/inx/inputs.py2
-rw-r--r--lib/output.py5
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/inx/inputs.py b/lib/inx/inputs.py
index 716e1708..3ae0b871 100755
--- a/lib/inx/inputs.py
+++ b/lib/inx/inputs.py
@@ -10,7 +10,7 @@ from .utils import build_environment, write_inx_file
def pyembroidery_input_formats():
for format in pyembroidery.supported_formats():
- if 'reader' in format and format['category'] in ['embroidery', 'color', 'stitch']:
+ if 'reader' in format and format['category'] in ['embroidery', 'color', 'stitch', 'debug']:
yield format['extension'], format['description']
diff --git a/lib/output.py b/lib/output.py
index 65e6f64d..a65a3af1 100644
--- a/lib/output.py
+++ b/lib/output.py
@@ -57,7 +57,7 @@ def write_embroidery_file(file_path, stitch_plan, svg, settings={}):
scale = 10 / PIXELS_PER_MM
origin = get_origin(svg, stitch_plan.bounding_box)
- origin = origin * scale
+ # origin = origin * scale
pattern = pyembroidery.EmbPattern()
stitch = Stitch(0, 0)
@@ -86,6 +86,9 @@ def write_embroidery_file(file_path, stitch_plan, svg, settings={}):
"full_jump": True,
})
+ if not file_path.endswith(('.col', '.edr', '.inf')):
+ settings['encode'] = True
+
if file_path.endswith('.csv'):
# Special treatment for CSV: instruct pyembroidery not to do any post-
# processing. This will allow the user to match up stitch numbers seen