Page 2 of 2

Re: svg to/from embroidery converter

Posted: Fri Oct 07, 2016 8:08 pm
by skflowne
Hey guys, kudos for these extensions. This is exactly what I would need for a web app, I'd like to know if there would be anyways to use one of these via a command line tool that I can install on my server ?

I wonder for example if the Python script could be run directly outside of inkscape if other dependencies are met ? Or if there would be a way to run the extension via the inkscape command line maybe ?

Re: svg to/from embroidery converter

Posted: Wed Nov 23, 2016 10:49 pm
by sergstetsuk
https://github.com/lexelby/inkscape-embroidery - is continuation of inkscape-embroidery project. It's enough robust now. Here you can find a video of this plugin in action: https://www.youtube.com/watch?v=HMLLkR07Z3Q

Re: svg to/from embroidery converter

Posted: Thu Nov 24, 2016 12:15 pm
by prkos
Wow this looks awesome!

Do you have a transcript or at least a short list of steps you followed in the video? It would help to have that on top of the documentation inside the extension.

Re: svg to/from embroidery converter

Posted: Thu Nov 24, 2016 6:06 pm
by sergstetsuk
Short description: We use here so called satin column. It is actually a two line path with the same number of points in each line. I've shown how to create satin column from text. Reproduction steps for one letter:
1. Draw text with text tool. Change size and font as you need
2. Convert Text to path with Path->ObjectToPath
3. Turn off fill color, make stroke color black or whatever you like
4. Delete 2 segments on the opposite ends of the path to create 2 separate lines in path.
5. Uncombine path to separate lines
6. Reverse one of those lines to make them true semi parallel
7. Combine them back
8. Add or delete points with Node tool to make both lines equal number of nodes (points)
9. Use Embroidery->Params and make this path a Satin Column
10. Run Embroidery->Embroider
I didn't try but maybe you don't need to uncombine/combine operations if you can reverse only one line in twoline path.

Re: svg to/from embroidery converter

Posted: Thu Nov 24, 2016 6:59 pm
by sergstetsuk
Here you have another video: How to convert resulting CSV to Brother PES format: https://www.youtube.com/watch?v=NK48fyFArUY
Steps:
1. Find resulting *.csv
2. Run:

Code: Select all

$ libembroidery-convert test.csv test.pes

3. Check resulting *.pes with pesconvert utility:

Code: Select all

 $ pesconvert test.pes test.png

Re: svg to/from embroidery converter

Posted: Mon Dec 12, 2016 11:12 pm
by ha1flosse
hey, i'm running inkscape 0.91 and your extension on ubuntu 12.04.

sadly, it doesn't work at all. shapely is installed correctly and is working correctly with the release of the extension by johnh. now your release won't and prints the error message:

Traceback (most recent call last):
File "embroider.py", line 38, in <module>
import shapely.affinity as affinity
ImportError: No module named affinity

would be cool to work from start to end with inkscape regarding embroidery, but for now, just the commercial solutions seem to complete the working-pipeline.

anyway, many thanks for your commitment and your work on the extension.

Re: svg to/from embroidery converter

Posted: Tue Jan 03, 2017 10:48 pm
by ha1flosse
in case you're encountering the following traceback-message

Traceback (most recent call last):
File "embroider.py", line 42, in <module>
import PyEmb
File "/home/user/.config/inkscape/extensions/PyEmb.py", line 11, in <module>
from backports.functools_lru_cache import lru_cache
ImportError: No module named backports.functools_lru_cache

you can add the missing python-module by installing "pip" (via terminal or softwarecenter "python-pip" on ubuntu) and add the module via commandline (ubuntu) by "sudo pip install backports.functools_lru_cache".