svg to/from embroidery converter

Using Inkscape with other software? Talk about it here.
skflowne
Posts: 1
Joined: Fri Oct 07, 2016 7:59 pm

Re: svg to/from embroidery converter

Postby skflowne » Fri Oct 07, 2016 8:08 pm

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 ?

sergstetsuk
Posts: 3
Joined: Wed Nov 23, 2016 10:38 pm

Re: svg to/from embroidery converter

Postby sergstetsuk » Wed Nov 23, 2016 10:49 pm

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

User avatar
prkos
Posts: 1537
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: svg to/from embroidery converter

Postby prkos » Thu Nov 24, 2016 12:15 pm

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.
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

sergstetsuk
Posts: 3
Joined: Wed Nov 23, 2016 10:38 pm

Re: svg to/from embroidery converter

Postby sergstetsuk » Thu Nov 24, 2016 6:06 pm

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.

sergstetsuk
Posts: 3
Joined: Wed Nov 23, 2016 10:38 pm

Re: svg to/from embroidery converter

Postby sergstetsuk » Thu Nov 24, 2016 6:59 pm

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

User avatar
ha1flosse
Posts: 133
Joined: Wed Oct 21, 2009 8:12 pm
Contact:

Re: svg to/from embroidery converter

Postby ha1flosse » Mon Dec 12, 2016 11:12 pm

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.

User avatar
ha1flosse
Posts: 133
Joined: Wed Oct 21, 2009 8:12 pm
Contact:

Re: svg to/from embroidery converter

Postby ha1flosse » Tue Jan 03, 2017 10:48 pm

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".


Return to “Inkscape & other”

Who is online

Users browsing this forum: No registered users and 2 guests