diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-04-21 15:49:58 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-04-29 21:28:48 -0400 |
| commit | 378f079e6d15757ed6cb0b2e04f50642b5adaaac (patch) | |
| tree | bbe8294531943f8b4ab6eb7ab1b3b5bd112015f2 /embroider_print.py | |
| parent | b3e9d12db4cfbbf8f1760d80fcd760d48a83e583 (diff) | |
add ThreadCatalog and palette matching
Diffstat (limited to 'embroider_print.py')
| -rw-r--r-- | embroider_print.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embroider_print.py b/embroider_print.py index cbdaeb09..7ab24876 100644 --- a/embroider_print.py +++ b/embroider_print.py @@ -21,6 +21,7 @@ from inkstitch.extensions import InkstitchExtension from inkstitch.stitch_plan import patches_to_stitch_plan from inkstitch.svg import render_stitch_plan from inkstitch.utils import save_stderr, restore_stderr +from inkstitch.threads import ThreadCatalog from jinja2 import Environment, FileSystemLoader, select_autoescape from datetime import date @@ -290,6 +291,7 @@ class Print(InkstitchExtension): patches = self.elements_to_patches(self.elements) stitch_plan = patches_to_stitch_plan(patches) + ThreadCatalog().match_and_apply_palette(stitch_plan) render_stitch_plan(self.document.getroot(), stitch_plan) self.strip_namespaces() |
