svg to/from embroidery converter
svg to/from embroidery converter
I'd just like to tell and discuss, if anyone is interested, that I made a svg to/from machine embroidery converter. Embroidery files is also vector graphics and I found some description on some of the file types available for machine embroidery. So I read a lot on the svg file format and combined this with some mathematics and some knowledge to php. So now I can create my own embroidery files with Inkscape. I can also convert embroidery files to svg to edit the files in Inkscape and then convert it back to embroidery file format.
Embroidery software costs a lot, so this is an attempt to make creation of embroidery files affordable to hobbyists.
Embroidery software costs a lot, so this is an attempt to make creation of embroidery files affordable to hobbyists.
Last edited by knobba on Wed Mar 03, 2010 2:03 am, edited 1 time in total.
Re: svg to/from embroidery converter
Embroidery software costs a lot, so this is an attempt to make creation of embroidery files affordable to hobbyists.
Wow, I didn't know there was any such thing as embroidery software. I have done a lot of embroidery (and other sewing or needlecraft) (in the past, pre-arthritis), and can't quite comprehend why special software should even be needed in the 1st place. I can see how knitting could employ computer software, also needlepoint, even quilting. But embroidery....unless you mean counted cross stitch....but even counted cross stitch is basically line drawings, even though the stitch is an X. Maybe you could educate me on that?
But yeah, Inkscape would be perfect for creating embroidery stencils!
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: svg to/from embroidery converter
I am talking about software to prepare files that stitch by stitch tell an embroidery machine where to put the needle. Here is an example on a machine embroidery which you certainly not would sew by hand. And the basis for this embroidery is an embroidery file conisisting of straight line element vectors. 
My web-converter takes an svg path, the stitch length and image width as input and converts the svg path to straight line element vectors and saves this in an embroidery format which I can upload to my embroidery machine, press start, take some coffee and watch it work for me

My web-converter takes an svg path, the stitch length and image width as input and converts the svg path to straight line element vectors and saves this in an embroidery format which I can upload to my embroidery machine, press start, take some coffee and watch it work for me

Re: svg to/from embroidery converter
OOoohh, machine embroidery. Yes, that's a different story!
Thanks for that. I was taught sewing by the oldest of the old school techniques -- when machines were used for making clothes, and everything else was by hand.
Thanks for that. I was taught sewing by the oldest of the old school techniques -- when machines were used for making clothes, and everything else was by hand.
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: svg to/from embroidery converter
There are similar efforts to create vinyl cutter files from Inkscape to escape the proprietary software used for those. (The inkscape vectors are turned into paths the cutter blade follows)
I would think there is much in common between the two.
-Rob A.
I would think there is much in common between the two.
-Rob A.
Re: svg to/from embroidery converter
ffaat wrote:There are similar efforts to create vinyl cutter files from Inkscape to escape the proprietary software used for those. (The inkscape vectors are turned into paths the cutter blade follows)
I would think there is much in common between the two.
Sounds like there is similarities, yes.
Re: svg to/from embroidery converter
Here's an inkscape extension I wrote that emits a machine-embroidery file.
http://www.jonh.net/~jonh/inkscape-embroidery/
Enjoy!
http://www.jonh.net/~jonh/inkscape-embroidery/
Enjoy!
Re: svg to/from embroidery converter
Hey! Somebody else with the same interests
Would be interesting to discuss algorithms

Re: svg to/from embroidery converter
I'd be happy to; email address is on the web page linked above.
Of course, you can also just fetch the program itself to see what naive algorithms I'm already using. :v) It's pretty durn simple; no control over things like thread direction and stitch pattern. The page has a "theory of operation" section that gives you the basic rundown.
Of course, you can also just fetch the program itself to see what naive algorithms I'm already using. :v) It's pretty durn simple; no control over things like thread direction and stitch pattern. The page has a "theory of operation" section that gives you the basic rundown.
svg to embroidery
knobba wrote:I'd just like to tell and discuss, if anyone is interested, that I made a svg to/from machine embroidery converter. ... Embroidery software costs a lot ...
Hello, just started using Inkscape and found this thread, no pun intended. I was searching for a way to convert .AI files to .EMF for input into Embird embroidery digitizing software. I tried several things which did not work until I learned about Inkscape which has worked perfectly on everything I've tried so far. Embird is one of the least expensive programs I could find to edit and digitize embroidery designs.
I had both a .JPG and .AI file of a logo. I digitized the logo by tracing the bitmap in Embird and it took about two hours. After installing Inkscape, I loaded the .AI file of the logo, saved as .EMF, then digitized the same logo in Embird. The entire process took about two minutes. I haven't sent the file to the machine yet but the thread simulation looks good.
I've just finished the tutorials and I can see that Inkscape should be quite useful for creating original designs. Tonight I'll try creating a cartoon design a friend wants to put on a shirt.
JKJ
Re: svg to/from embroidery converter
Embird might work very well and be the least expensive ($164), but for me I'd rather have the fun of creating my own free and simple program, than spend those money 

-
- Posts: 1
- Joined: Sat May 16, 2015 2:26 pm
- Location: Lancaster, PA
Re: svg to/from embroidery converter
Wow! embroidery machine that’s a new thing in forums. I really did not know that there was embroidery software. Nice idea.
Re: svg to/from embroidery converter
I made an account just for this thread. I love inkscape and I've been looking for an embroidery program that won't cost me an arm and a leg as well as will be as intuitive as inkscape. I cannot wait to try this out!
Re: svg to/from embroidery converter
I think Inkscape would be great to use, to draw embroidery patterns/designs. There is another extension which you might find helpful. I haven't used it, so I can't say how well or not well it works. I think what it does is make your drawing so that the embroidery machine can use it. I was 6 years old when my mother started teaching me how to embroider by hand! ("analog" I supposed!) But I've never used any kind embroidery machine. I've seen them demonstrated though, like on public tv programs. They look like amazing machines! They even can do things like smocking! Although I guess you probably know that already.
https://github.com/stesie/inkscape-embroidery
This is a whole different kind of craft, but you still might be interested. Bobbin Lace http://web.uvic.ca/~vmi/laceTools/Inksc ... cape1.html
And this is for clothing patterns: http://www.taumeta.org/?page_id=247
You'll primarily want to learn to use the Pen/Bezier tool
, along with the Node tool
. I'd suggest Help menu > Tutorials > Basic, Shapes, and Advanced. Even though it's called Advanced, it really is for beginners. (I promise! That's what I used when I first started learning Inkscape.) And the Advanced tutorial is the one that briefly tells you about creating and editing paths.
In the manual, which is Help menu > Inkscape manual (needs internet connection) try the tutorial in the Quick Start chapter called Hiking Club Logo. It also focuses on paths, with more detail than the Advanced tutorial.
https://github.com/stesie/inkscape-embroidery
This is a whole different kind of craft, but you still might be interested. Bobbin Lace http://web.uvic.ca/~vmi/laceTools/Inksc ... cape1.html
And this is for clothing patterns: http://www.taumeta.org/?page_id=247
You'll primarily want to learn to use the Pen/Bezier tool


In the manual, which is Help menu > Inkscape manual (needs internet connection) try the tutorial in the Quick Start chapter called Hiking Club Logo. It also focuses on paths, with more detail than the Advanced tutorial.
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: svg to/from embroidery converter
brynn wrote:I think Inkscape would be great to use, to draw embroidery patterns/designs. There is another extension which you might find helpful. I haven't used it, so I can't say how well or not well it works. I think what it does is make your drawing so that the embroidery machine can use it. I was 6 years old when my mother started teaching me how to embroider by hand! ("analog" I supposed!) But I've never used any kind embroidery machine. I've seen them demonstrated though, like on public tv programs. They look like amazing machines! They even can do things like smocking! Although I guess you probably know that already.
https://github.com/stesie/inkscape-embroidery
This is a whole different kind of craft, but you still might be interested. Bobbin Lace http://web.uvic.ca/~vmi/laceTools/Inksc ... cape1.html
And this is for clothing patterns: http://www.taumeta.org/?page_id=247
http://bigmall.ge - gancxadebebi
You'll primarily want to learn to use the Pen/Bezier tool, along with the Node tool
. I'd suggest Help menu > Tutorials > Basic, Shapes, and Advanced. Even though it's called Advanced, it really is for beginners. (I promise! That's what I used when I first started learning Inkscape.) And the Advanced tutorial is the one that briefly tells you about creating and editing paths.
In the manual, which is Help menu > Inkscape manual (needs internet connection) try the tutorial in the Quick Start chapter called Hiking Club Logo. It also focuses on paths, with more detail than the Advanced tutorial.
thx +1


Re: svg to/from embroidery converter
cool brynn, thanks for the nice infos!
we got a janome mc 500e at our fablab now, so the inkscape-embroidery-plugin is very exciting..
the github - branch https://github.com/stesie/inkscape-embroidery didn't work so far on ubuntu 12.04 with inkscape 0.48.3.1 r9886.
the embroidery - script/filter breaks operation with:
Traceback (most recent call last):
File "embroider.py", line 38, in <module>
import shapely.affinity as affinity
ImportError: No module named affinity
the original script from Jon Howell works instead and creates outputs.
we got a janome mc 500e at our fablab now, so the inkscape-embroidery-plugin is very exciting..
the github - branch https://github.com/stesie/inkscape-embroidery didn't work so far on ubuntu 12.04 with inkscape 0.48.3.1 r9886.
the embroidery - script/filter breaks operation with:
Traceback (most recent call last):
File "embroider.py", line 38, in <module>
import shapely.affinity as affinity
ImportError: No module named affinity
the original script from Jon Howell works instead and creates outputs.
Re: svg to/from embroidery converter
Hhm....I can't help with the errors from that extension. But at least I can make a note that it's not working (for my "extensions master list" project). Possibly you could try and contact the developer? (the current developer)
What do you mean by "the original script from Jon Howell"? I'm looking on the github page, but I can't identify some "original script". Oh, you mean from the link posted in the middle of this thread, by a Guest (at the time, visitors could post without registering): http://www.jonh.net/~jonh/inkscape-embroidery/
What about the extension which is the subject of this thread (http://svg2embr.wasbo.net/index.php). Were you able to try it?
Meanwhile, someone has recently posted on the dev mailing list about several new extensions he's making, which (if I understand correctly) will help in creating designs for machine embroidery. He wants to provide some new functionality for the core Inkscape code, as well. And he's received some positive and supportive comments, and even an offer from someone to help. I have no idea how soon these will be available.
Aarrggghh! I was going to look up the guy's name, but I can't get my email to open... I guess I'll have to go into troubleshooting mode....
What do you mean by "the original script from Jon Howell"? I'm looking on the github page, but I can't identify some "original script". Oh, you mean from the link posted in the middle of this thread, by a Guest (at the time, visitors could post without registering): http://www.jonh.net/~jonh/inkscape-embroidery/
What about the extension which is the subject of this thread (http://svg2embr.wasbo.net/index.php). Were you able to try it?
Meanwhile, someone has recently posted on the dev mailing list about several new extensions he's making, which (if I understand correctly) will help in creating designs for machine embroidery. He wants to provide some new functionality for the core Inkscape code, as well. And he's received some positive and supportive comments, and even an offer from someone to help. I have no idea how soon these will be available.
Aarrggghh! I was going to look up the guy's name, but I can't get my email to open... I guess I'll have to go into troubleshooting mode....
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: svg to/from embroidery converter
What about the extension which is the subject of this thread (http://svg2embr.wasbo.net/index.php). Were you able to try it?
yes, i've been converting simple forms using the web-extension and it works nicely, thanks to the author! but the extension only converts path lines and is only accessible via webpage. the projects you mentioned for example already calculate stitches of closed paths' filled areas, so using them saves a lot of time rather than placing the stitches for fills by hand.
Meanwhile, someone has recently posted on the dev mailing list about several new extensions he's making, which (if I understand correctly) will help in creating designs for machine embroidery. He wants to provide some new functionality for the core Inkscape code, as well. And he's received some positive and supportive comments, and even an offer from someone to help. I have no idea how soon these will be available.
cool, did you retrieve a link to the projects page? would be very cool to use inkscape from start to end converting to embroidery formats.
Re: svg to/from embroidery converter
half-offtopic:
Ha1flosse, judging from your nickname, I think this page would also contain interesting info for you (it's in German):
https://wiki.raumzeitlabor.de/wiki/Schr ... n_Inkscape
and this page might be cool to see for everyone here:
https://wiki.raumzeitlabor.de/wiki/Rarity/Pony-Motive (night-glow)
Ha1flosse, judging from your nickname, I think this page would also contain interesting info for you (it's in German):
https://wiki.raumzeitlabor.de/wiki/Schr ... n_Inkscape
and this page might be cool to see for everyone here:
https://wiki.raumzeitlabor.de/wiki/Rarity/Pony-Motive (night-glow)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Re: svg to/from embroidery converter
ha1flosse wrote:cool, did you retrieve a link to the projects page? would be very cool to use inkscape from start to end converting to embroidery formats.
At the time he first posted, he had not yet uploaded his work for others to look at and comment on. I still haven't checked my mail today, so maybe he has it posted by now. I'll try and remember when he posts, to put a link here. But it will probably be like be something like a github account, with only files of codes, and not any images or promotions. But I'll try to post a link, when he has one.
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: svg to/from embroidery converter
This is the mailing list thread: https://sourceforge.net/p/inkscape/mail ... /34893518/
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Re: svg to/from embroidery converter
thanks moini, awesome infos!
allright brynn, looking forward to the release then.
allright brynn, looking forward to the release then.
Re: svg to/from embroidery converter
as described in the work in progress thread here (viewtopic.php?f=9&t=24012), i picked a simple cartoon character for the trial to embroider it onto textile. taking the steps of the nice tutorial by knobba (http://svg2embr.wasbo.net/index.php) and using the extension suggested by a guest (http://www.jonh.net/~jonh/inkscape-embroidery/).
this is what the result looks like. left and right next to the character you'll find the stitch path resulting from the tutorial of knobba, far right and left the result of the embroidery - extension.

as far as i can see, right now the result of the extension looks ok except some points of which i still don't know if the line management is ok or not.
i'm still struggling in understanding how the path direction and start/end influences the stitch positioning and what is meant by "jump stitches". would be cool if someone explains the fundamentals in understanding how a stitch pattern is build a little bit more, maybe knobba can, until then this is just a trial and error type situation rather than based on knowledge.
this is what the result looks like. left and right next to the character you'll find the stitch path resulting from the tutorial of knobba, far right and left the result of the embroidery - extension.

as far as i can see, right now the result of the extension looks ok except some points of which i still don't know if the line management is ok or not.
i'm still struggling in understanding how the path direction and start/end influences the stitch positioning and what is meant by "jump stitches". would be cool if someone explains the fundamentals in understanding how a stitch pattern is build a little bit more, maybe knobba can, until then this is just a trial and error type situation rather than based on knowledge.
Re: svg to/from embroidery converter
.. been optimizing the drawing and converted the exported data of the workflow above to a output-rendering with the software of the embroidery - device so this should be pretty close to the real output of the machine. clicking the pictures below links you to the pdf - output of the embroidery - software. still doesn't look ok (a lot of stitch line crossing where it shouldn't) but i hope to optimize the output with your kind help..
rendered thread - lines:

vector - stitch - lines:

rendered thread - lines:

vector - stitch - lines:

Re: svg to/from embroidery converter
I need to do something with my user-settings so that I can get alerted on replies to this thread 
Good to hear that the tutorial was helpful, but I see that my tutorials could be optimized to be clearer. Jump-stiches is the stitches you will have to trim away after finishing the embroidery - the stitches you get when going from one path to the next - the stitches you actually don't want. I like to minimize the length of these stitches by working on the order and direction of the paths. Long jump-stitches might drag the fabric out of position or give strain to the neadle at least for my machine - so I try to minimize the distances between paths.
See this tutorial to see how I work on the directions.
ha1flosse - I was not able to see the images in your last post...

Good to hear that the tutorial was helpful, but I see that my tutorials could be optimized to be clearer. Jump-stiches is the stitches you will have to trim away after finishing the embroidery - the stitches you get when going from one path to the next - the stitches you actually don't want. I like to minimize the length of these stitches by working on the order and direction of the paths. Long jump-stitches might drag the fabric out of position or give strain to the neadle at least for my machine - so I try to minimize the distances between paths.
See this tutorial to see how I work on the directions.
ha1flosse - I was not able to see the images in your last post...