diff options
Diffstat (limited to 'lib/inx')
| -rwxr-xr-x | lib/inx/extensions.py | 2 | ||||
| -rwxr-xr-x | lib/inx/inputs.py | 2 | ||||
| -rw-r--r-- | lib/inx/outputs.py | 8 |
3 files changed, 9 insertions, 3 deletions
diff --git a/lib/inx/extensions.py b/lib/inx/extensions.py index 9a197c5d..0ff3e889 100755 --- a/lib/inx/extensions.py +++ b/lib/inx/extensions.py @@ -30,7 +30,7 @@ def object_commands(): def pyembroidery_debug_formats(): for format in pyembroidery.supported_formats(): - if 'writer' in format and format['category'] != 'embroidery': + if 'writer' in format and format['category'] not in ['embroidery', 'image', 'color', 'stitch']: yield format['extension'], format['description'] diff --git a/lib/inx/inputs.py b/lib/inx/inputs.py index 2cf84df9..716e1708 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'] == 'embroidery': + if 'reader' in format and format['category'] in ['embroidery', 'color', 'stitch']: yield format['extension'], format['description'] diff --git a/lib/inx/outputs.py b/lib/inx/outputs.py index 1ac1daf8..3a4ac9d0 100644 --- a/lib/inx/outputs.py +++ b/lib/inx/outputs.py @@ -12,7 +12,13 @@ def pyembroidery_output_formats(): for format in pyembroidery.supported_formats(): if 'writer' in format: description = format['description'] - if format['category'] != "embroidery": + if format['category'] == "color": + description = "%s [COLOR]" % description + elif format['category'] == "image": + description = "%s [IMAGE]" % description + elif format['category'] == "stitch": + description = "%s [STITCH]" % description + elif format['category'] != "embroidery": description = "%s [DEBUG]" % description yield format['extension'], description, format['mimetype'], format['category'] |
