Stitch Era - creating embroidery from vector images: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
m (Text replacement - "<pageby nominor="false" comments="false"/>" to "<!-- <pageby nominor="false" comments="false"/> -->")
mNo edit summary
 
(58 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{embroidery|Beginners tutorial}}
{{syllabus
{{Incomplete}}
|is_part_of_syllabus=Machine embroidery
<!-- <pageby nominor="false" comments="false"/> -->
|is_part_of_module=Stitch Era tutorials
 
|is_module_of=Stitch Era tutorials
|do_not_show_sub_page=No
|page_previous=Stitch Era embroidery software
|page_next=Stitch Era - creating embroidery from raster images
|status=to improve
|objective=Import vector graphics files,
Digitize a vector graphic
|difficulty=beginner
|prerequisite=Stitch Era embroidery software
|see_also=Stitch Era - creating embroidery from raster images,
Stitch Era - adjusting stitch sections,
Stitch Era - vector graphics
|cat_syllabus=Stitch Era tutorials
}}
== Introduction ==
== Introduction ==


This beginner's tutorial for the [[Stitch Era embroidery software]] explains how to go from either imported '''bitmaps''' or imported '''vector images''' to embroidery without understanding much about digitizing. Under the condition that you start from a simple file ('''not a photograph ! ''') you will get a fairly instant reward.
This beginner's tutorial for the [[Stitch Era embroidery software]] explains how to go from imported '''vector images''' to embroidery without understanding much about digitizing. Under the condition that you start from a simple vector graphics file ('''not a *.png or *.jpg file''') you will get a fairly instant reward.


<div class="tut_goals">
;Tutorial home page
:[[Stitch Era embroidery software]]
;Learning goals:
:Be able to import vector graphics or bitmap files
:Be able to vectorize a bitmap file, i.e. turn it into a vector graphic
:Be able to digitize a vector graphic
;Prerequisites:
: [[Stitch Era embroidery software]] (in particular be able to create a new design).
;Related pages:
: none
; Materials
: You can reuse the pictures. In the wiki, click on picture to make it larger, then click again and save it.
;Quality and level
: This text should technical people get going with Stitch Era. I use it an optional master degree course in educational technology.
; Next steps
; Next steps
* [[Stitch Era - creating embroidery from raster images]]. Create embroidery from simple and relatively clean raster images (e.g. *.png or *.jpg files)
* [[Stitch Era - adjusting stitch sections]] explains how to change parameters embroidery sections, e.g. stitch density, fill patterns, etc. '''after''' and auto-digitizing procedure.
* [[Stitch Era - adjusting stitch sections]] explains how to change parameters embroidery sections, e.g. stitch density, fill patterns, etc. '''after''' and auto-digitizing procedure.
* [[Stitch Era - vector graphics]]. You don't necessarily need to learn how to draw vector graphics that you then can convert to embroidery (stitch sections). However, you will be able to speed up your work and you also could reuse principles (e.g. Bezier drawing) for manipulating stitch sections as well as in other multi-media programs.
* [[Stitch Era - vector graphics]]. You don't necessarily need to learn how to draw vector graphics that you then can convert to embroidery (stitch sections). However, you will be able to speed up your work and you also could reuse principles (e.g. Bezier drawing) for manipulating stitch sections as well as in other multi-media programs.
</div>


=== Computer graphics formats and file extensions ===
=== Vector graphics formats and file extensions ===


There exist two types of [[graphics file format]]s:
There exist two types of [[graphics file format]]s:
* '''Vector graphics''' are "mathematical" definitions of drawings and are in principle much easier to digitize. Vectors graphics are fully scalable, i.e. they will not loose quality if you change its size. Typical programs to create vector graphics are Inkscape (free), Illustrator and Corel Draw. Stitch Era can interface with Corel Draw and Illustrator, but not Inkscape. Typical file formats are *.ai, *.svg, *.cdr, *.wmf and *.emf. Stitch Era includes its own vector graphics drawing program and it may be used in the first stage of designing an embroidery. You will use this module to fix imported vector graphics and/or to draw your own graphics objects.
* '''Vector graphics''' are "mathematical" definitions of drawings and are in principle much easier to digitize. Vectors graphics are fully scalable, i.e. they will not loose quality if you change its size. Typical programs to create vector graphics are Inkscape (free), Illustrator and Corel Draw. Stitch Era can import SVG drawings or proprietary Corel Draw and Illustrator formats. Typical file formats are *.ai, *.svg, *.cdr, *.wmf and *.emf. Stitch Era includes its own vector graphics drawing program and it may be used in the first stage of designing an embroidery. You can use this module to fix imported vector graphics and/or to draw your own graphics objects.
* '''Bitmaps''' (also called '''raster graphics''') define a picture, e.g. a drawing or a photograph, in terms of little dots (color pixels). Bitmaps, by definition are lossy in two ways: (1) You cannot resize a picture without loosing quality. (2) Most file formats allow to compress (reduce the size) of a picture in a way that will loose some information. Bitmap drawings that appear to be crisp are in fact not. However, most [[clipart]] found on the Internet are bitmaps, unfortunately. Digitizing bitmaps usually implies a first translation to vector graphics as you shall learn. That process is called '''vectorizing'''. You could directly digitize a cleaned up bitmap file to stitch sections, but I wasn't satisfied with the result and therefore will not introduce this in any tutorial.
* '''Bitmaps''' (also called '''raster graphics''') define a picture, e.g. a drawing or a photograph, in terms of little dots (color pixels). Bitmaps, by definition are lossy in two ways: (1) You cannot resize a picture without loosing quality. (2) Most file formats allow to compress (reduce the size) of a picture in a way that will loose some information. Bitmap drawings that appear to be crisp are in fact not. However, most [[clipart]] found on the Internet are bitmaps, unfortunately. Digitizing bitmaps usually implies a first translation to vector graphics as you shall learn. That process is called '''vectorizing'''. You could directly digitize a cleaned up bitmap file to stitch sections, but I wasn't satisfied with the result and therefore will not introduce this in any tutorial. Typical '''bitmap''' file formats are *.png, *.jpg and *.gif. PNG and the older GIF are optimized for drawings, whereas *.jpg is optimized for photographies.


: Typical '''bitmap''' file formats are *.png, *.jpg and *.gif. PNG and the older GIF are optimized for drawings, whereas *.jpg is optimized for photographies. Avoid using *.bmp, since these files are huge and will eat up your hard disk. Rather translate these to lossless PNG. Stitch Era allows to do some image manipulation. In particular, it includes a nice color reduction tool. You also may consider installing a simple image conversion/manipulation tool like [http://www.irfanview.com/ IrfanView] if you don't own or master the more difficult free [http://www.gimp.org/ Gimp] or the commercial Photoshop software. For very simple operations, Windows Office Picture Manager also does a fine job. In the program menu, look in Microsoft Office->Microsoft Office Tools.
=== Vector graphics formats and file extensions ===
 
There exist two types of [[graphics file format]]s:
* '''Vector graphics''' are "mathematical" definitions of drawings and are in principle much easier to digitize. Vectors graphics are fully scalable, i.e. they will not loose quality if you change its size. Typical programs to create vector graphics are Inkscape (free), Illustrator and Corel Draw. Stitch Era can import SVG drawings or proprietary Corel Draw and Illustrator formats. Typical file formats are *.ai, *.svg, *.cdr, *.wmf and *.emf. Stitch Era includes its own vector graphics drawing program and it may be used in the first stage of designing an embroidery. You can use this module to fix imported vector graphics and/or to draw your own graphics objects.
* '''Bitmaps''' (also called '''raster graphics''') define a picture, e.g. a drawing or a photograph, in terms of little dots (color pixels). Bitmaps, by definition are lossy in two ways: (1) You cannot resize a picture without loosing quality. (2) Most file formats allow to compress (reduce the size) of a picture in a way that will loose some information. Bitmap drawings that appear to be crisp are in fact not. However, most [[clipart]] found on the Internet are bitmaps, unfortunately. Digitizing bitmaps usually implies a first translation to vector graphics as you shall learn. That process is called '''vectorizing'''. You could directly digitize a cleaned up bitmap file to stitch sections, but I wasn't satisfied with the result and therefore will not introduce this in any tutorial. Typical '''bitmap''' file formats are *.png, *.jpg and *.gif. PNG and the older GIF are optimized for drawings, whereas *.jpg is optimized for photographies.


=== A short view of the design workflow ===
=== A short view of the design workflow ===


We shall show how to create embroidery from both types of graphics formats, vector and bitmap. Basically the workflow of creating embroidery looks like this. Optional steps are in [...] (brackets)
In this tutorial ''series'' we shall show how to create embroidery from both types of graphics formats, vector and bitmap. Basically the workflow of creating embroidery looks like this. Optional steps are in [...] (brackets)
  [ bitmaps ] -> [ vector graphics ] -> stitch sections -> generated stitches
  [ bitmaps ] -> [ vector graphics ] -> stitch sections -> generated stitches


Stitch sections (also called embroidery objects) are some kind of embroidery-specific vector graphics that define surfaces (areas) and lines (path) in terms of how these are going to be stitched. This "how" is defined with many many parameters. Professionals may directly create stitch sections. Others often start from a computer graphic file. Translation from vector graphic to stitch sections is called '''digitizing'''. When it is done automatically (Stitch Era can do that) it is called '''auto-digitizing'''.
Stitch sections (also called embroidery objects) are some kind of embroidery-specific vector graphics that define surfaces (areas) and lines (path) in terms of how these are going to be stitched. This "how" is defined with many many parameters. Professionals may directly create stitch sections. Others often start from a computer graphic file. Translation from vector graphic to stitch sections is called '''digitizing'''. When it is done automatically (Stitch Era can do that) it is called '''auto-digitizing'''.
This tutorial will explain how to deal with vector graphics, in particular the open SVG Internet format for which one can free artwork on web sites like [http://openclipart.org openclipart] or the [https://thenounproject.com/ noun project]. If you are interested in dealing with raster image files (e.g. *.jpg and *.png*) you later should go through the [[Stitch Era - creating embroidery from vector images]] tutorial.


=== Quality of (semi) auto-digitizing ===
=== Quality of (semi) auto-digitizing ===
Line 46: Line 50:
Before you start reading the rest, let me make clear that embroidery created from images through auto-digitizing '''will not be professional'''. As you shall see, it is fairly easy to digitize a bitmap or a vector graphic. The result will be acceptable and fine enough for certain purposes. However there will we three major problems:
Before you start reading the rest, let me make clear that embroidery created from images through auto-digitizing '''will not be professional'''. As you shall see, it is fairly easy to digitize a bitmap or a vector graphic. The result will be acceptable and fine enough for certain purposes. However there will we three major problems:


1) The result may not convey the message you would like it to. E.g. the embroidery may include too many details.
1) The result may not convey the message you would like it to. E.g. the embroidery may include too many details.  


2) Nice embroidery doesn't follow the same visual design principles as screen or paper graphics, i.e. somehow the result just doesn't look good.
2) Nice embroidery doesn't follow the same visual design principles as screen or paper graphics, i.e. somehow the result just doesn't look good.
Line 57: Line 61:
|+ Simple vs. more advanced digitizing
|+ Simple vs. more advanced digitizing
|-
|-
| [[image:Lams-dolly-lrg.gif|frame|none|Original bitmap]] || [[image:lams-lamb-embroidery-4a.jpg|thumb|200px|none|Logo auto-digitized]]||
| [[image:Lams-dolly-lrg.gif|frame|none|Original bitmap]] || [[image:lams-lamb-embroidery-4a.jpg|thumb|200px|none|Logo auto-digitized]]
|-
|-
|[[image:lams-logo-embroidered-take-1.jpg|thumb|200px|none|Logo redesigned and (mostly) auto-digitized]] || [[image:lams-logo-embroidered-take-2.jpg|thumb|200px|none|Logo redesigned take 2]]
|[[image:lams-logo-embroidered-take-1.jpg|thumb|200px|none|Logo redesigned and (mostly) auto-digitized]] || [[image:lams-logo-embroidered-take-2.jpg|thumb|200px|none|Logo redesigned take 2]]
Line 76: Line 80:
=== Prerequisites ===
=== Prerequisites ===


(1) You should own either Illustrator CS5 or Corel Draw. Both Illustrator or Corel are rather expensive (unless you are a teacher or student). If you can afford it, buy Illustrator. If you can't, then you can still can try working with Inkscape and use EMF exchange files.
You should install the free [[Inkscape]] program or own either Illustrator CS5 or Corel Draw. Both Illustrator or Corel Draw are rather expensive (unless you are a teacher or student).


(2) The [http://inkscape.org/ Inkscape] ([http://inkscape.org/download/?lang=en download]) drawing program is free, open source and it runs on most operating systems (including Windows and MacOSX). Inkscape doesn't have the power of Illustrator, but it is ''a trusted and powerful standand Linux drawing program'' and not some kind of crippleware or adware.
The [http://inkscape.org/ Inkscape] ([http://inkscape.org/download/?lang=en download]) drawing program is free, open source and it runs on most operating systems (including Windows and MacOSX). Inkscape doesn't have the power of Illustrator, but it is ''a trusted and powerful standand Linux drawing program'' and not some kind of crippleware or adware. However since it is difficult to learn, you also should consider using a simpler program, e.g. Libre Office Draw and then export to SVG which can be easily imported into recent versions of Stitch Era.


[[image:inkscape-copy-anchor.png|thumb|600px|none|Copying an anchor graphic in Inkscape]]
[[image:inkscape-copy-anchor.png|thumb|600px|none|Copying an anchor graphic in Inkscape]]


Unfortunately SVG should be imported via Illustrator over Corel over Inkscape for the simple reasons that (a) Stitch Era can't open Inkscape SVG files and (b) Corel has trouble with complex SVG files. You may wonder why we insist on showing how to import [[SVG]] files. The vast majority of free and open clipart is in the [[SVG]] format. In addition, SVG is a web standard and part of HTML 5. You could learn about SVG by reading Wikipedia's [http://en.wikipedia.org/wiki/Scalable_Vector_Graphics Scalable Vector Graphics], but this is not required for moving on with computerized embroidery.
=== Decide the right size ===
 
Big embroidery is more difficult stich and very big one is (almost) impossible. We suggest starting with sizes that correspond to the smaller standard hoops that come with your machine. E.g. our [[Brother PR1050X]] has 10x10cm and a 18x13cm small/medium and medium hoops. You can have the software a select a hoop for you when you use the wizard mode: Home tab <code>New</code> -> <code>Embroidery wizard (complete)</code>, however we prefer doing it manually before importing a design.
 
To select a hoop size:
* Open the Home tab
* Click on the Hoops pulldown menu
* In the popup, select your brand (e.g. Brother) and select the size. Brand names do not really matter, but selecting a good maxium size of your embroidery is a good idea.  


(3) You should install a modern web browser. E.g. if you use Internet Explorer, you should upgrade to version 9. This way you can see the SVG. Any other browser (Firefox, Opera, Safari, etc.) has had SVG support for years ...
[[File:stitch-era-17-hoop-selection.png|thumb|none|800px|hoop selection]]
 
If you already imported a drawing, it may be in a bad place, i.e. not show within the hoop. to fix that:
* Select all (CTRL-A)
* Artwork / Layout tab
* <code>To Design</code> -> <code> Center at origin</code>
 
In case you need to reposition both vector graphics and embroidery sections:
* Make both Auxiliar and Embroidery visible
* Select all (CTRL-A)
* In the Block/Layout tab that you now should see: Click on <code> Center of Design</code>


=== Get and import vector images ===
=== Get and import vector images ===
Line 95: Line 116:
* Save the file using '''File->Save page as''' (normal browsers) or '''Right click->Save image as''' (IE).
* Save the file using '''File->Save page as''' (normal browsers) or '''Right click->Save image as''' (IE).


Else, pick any other graphic from this repository. We suggest to start with a simple graphic, in particular if you never did any vector drawing before. Embroidery is low resolution process and it doesn't make sense to start from very complex fine-grained graphics. In addition, some complex SVG graphics cannot be copied via *.EMF.
Else, pick any other graphic from this repository. We suggest to start with a simple graphic, in particular if you never did any vector drawing before. Embroidery is low resolution process and it doesn't make sense to start from very complex fine-grained graphics. Also avoid any drawing that includes raster images. These cannot be imported.


Depending on what graphics program you own, importing SVG files into Stitch Era can be very easy or a bit more difficult.
Stitch Era can import the following popular formats: SVG, AI (Illustrator) and CDR (CorelDraw). DXF (Autodesk) and WMF are also supported. In older versions of Stich Era, depending on what graphics program you own, importing SVG files into Stitch Era was more difficult as explained [https://edutechwiki.unige.ch/mediawiki/index.php?title=Stitch_Era_-_simple_digitizing&oldid=59691 in an older version of this article]


'''(1 - Corel Draw) Import the vector graphics to Stitch Era'''
''' (2) Import a supported format:'''
* Open the *.SVG in Corel Draw
* In Stitch Era: Click Artwork -> Get from Application. Select Corel Draw.
Of course, you also could import Corel *.cdr files that way, but you won't find much free clip art in that format.


'''(2 - Inkscape) Import the vector graphics to Stitch Era'''
<code>Click Artwork TAB -> Open Vector File</code>
: Select the SVG format (if you stick to our example)


* Open the *.SVG vector graphic in [http://inkscape.org/ Inkscape] or in another vector program that can copy a drawing to the Windows clipboard.
'''Optional:''' Edit the vector graphics
* Still in the drawing program, select all. In Inkscape, we suggest either hitting
* Copy the selection to the clip board (simply hit CTRL-C in most programs or find the Copy button)
* Then go to Stitch Era and click on '''paste EMF vector'''.
: Notice:
:* The "Get from Application" feature only works with Illustrator or Corel draw.
:* Do '''not''' use "normal paste" (CTRL-V) !
[[image:stitch-era-paste-vector-graphics.png|frame|600px|none|Paste vector graphics from Inkscape]]
* You now should see something like this:
[[image:stitch-era-imported-vector-graphics.png|thumb|600px|none|Paste vector graphics from Inkscape]]
Notice: EMF is a lossy format, i.e. some SVG drawing elements may be lost in the process.


''' (3 - Illustrator) Import AI files to Stitch Era'''
You now have the choice to edit this a bit if needed. In principle you '''better do any editing in the drawing program.''' Anyhow, in the example shown here, I used Stitch Era to change a few thing. Selecting the white lines was a bit tricky since I couldn't select these parts even after ungrouping. Anyhow, select the object and the LAYOUT tab, then in the "grouping" ribbon to the right, tick ungroup all. You also could ungroup in the context menu. Now open the Object Manager, select the white Bezier Curver and hit DEL.
* Open the *.SVG in Illustraor
[[File:stitch-era-17-ungroup-anchor.png|thumb|600px|none|Ungrouped object]]
* In Stitch Era: Click Artwork -> Get from Application. Select Illustrator
 
* '''Warning''': Make sure to upgrade to Stitch Era 11.10 or later (fall 2011).
* Next, in the VECTOR tab, Select '''Vectors Outline and Body''' and the set line thickness to 0.5mm. This will add an outline to the object and make it 0.5mm thick.
Of course, you also could import *.AI files that way, but you won't find much free clip art in that format.


'''Optional:''' Edit the vector graphics
* You now have the choice to edit this a bit if needed. In principle you better do any editing in the drawing program. Anyhow, in the example shown here, I clicked on un-group all in order to get rid of the white lines which are not needed for stitching. This was actually a bit tricky since I couldn't see these parts (for a reason I don't understand). I therefore selected the blue part (click) and moved it way to the left and then selected the empty area with the white stuff and hit delete...
* I then made the borders a bit fatter with the "Thickness" pulldown menu. You can define thickness for parts (not combined objects)
* Then move on to auto-digitizing, but '''save''' the file first.
* Then move on to auto-digitizing, but '''save''' the file first.
=== Trouble importing vector images ===
If the vector graphics do not import, make sure that your vector file doesn't contain any errors. Furthermore, some drawings can be too complex for Stitch Art to handle.
If you work with Inkscape, try some or all of the following in the Inkscape software:
# '''Replace gradient colors with simple colors''' (Stitch Era cannot handle these).
# '''Resize the graphics to a stitchable size''', e.g. between 1 and 30 cm, else you won't see it. That being said, Stitch Era of course can resize and move artwork.
# '''Fit the document size to the picture size:''' Menu File->Document Properties. In the Custom size panel, open '''Resize page to content''', then click '''Resize page to drawing or selection'''.
# Remove unused items (e.g. DEFs) File->Clean up Document.
# '''Optimize SVG''': File -> Save as... -> Optimized SVG (the item is somewhere down the list, search for it). Before doing so, keep a copy of the old file, since this operation is very radical !
#* Tick "Enable viewboxing'' in the save dialog. This operation will do two things: insert a correct viewBox and set width and height attributes to 100%.
# If the above optimizing does not work, use an SVG cleaning program such as: http://www.codedread.com/scour/
# '''Remove non-standard SVG/Inkscape XML''' (plain SVG): File -> Save as... -> plain SVG. Since this operation will remove layers and other Inkscape-specific information, keep a copy of the old file if necessary.
# '''Do not work with files that embed raster images'''. To check if there are images, open the SVG with a web browser and look at the source. If you see something like the following, you got it wrong and you will have to remove these elements. You always can import a raster image in addition to a drawing, as explained in the [[Stitch Era - creating embroidery from raster images]] tutorial.
<image
      y="956.82056"
      x="114.51117"
      id="image3388"
      xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABQAAAAPYCAYAAACFWVSPAACvc0lEQVR42uz9d5xsW1ng/3/69Ln3
      .... many more lines cut ....
Similar principles apply to work with Illustrator (AI) or Corel Draw (CRD) files.
Again: Start from simple drawings or draw your own graphics.


=== Convert vector graphics to stitch sections and generate stitches ===
=== Convert vector graphics to stitch sections and generate stitches ===
Line 136: Line 166:


* If not already done so, select the vector object(s) first, e.g. move the cursor into the drawing area and press CTRL-A to select all of them.
* If not already done so, select the vector object(s) first, e.g. move the cursor into the drawing area and press CTRL-A to select all of them.
* Next, select the embroidery tab and select <code> Art to Stitch</code>.
[[image:stitch-era-17-art-to-stitch-1.png|thumb|600px|none|Stitch Era 17 - Convert vector graphics - step one: Select '''Art-to-Stitch (intelligent)''']]
In older versions, e.g. Stitch Era 11, the procedure was a bit different.
* Click on '''Convert''' (notice how the tabs change in the program). If you can't see the "Convert button", make sure you really selected the objects on the screen !
* Click on '''Convert''' (notice how the tabs change in the program). If you can't see the "Convert button", make sure you really selected the objects on the screen !
[[image:stitch-era-convert-vector-graphics.png|frame|none|Convert vector graphics - step one]]
[[image:stitch-era-convert-vector-graphics.png|frame|none|Stitch Era 11 - Convert vector graphics - step one]]
* You now can choose between letting the program decide for you or vectorize fills (areas) and strokes (lines) yourself one by one. Try '''Art to Stitch (intelligent)''' first, i.e. use an '''auto-digitizing''' procedure.
 
* You should now see the '''Image to Sections''' popup window, as shown in the picture below.
You now can choose between letting the program decide for you or vectorize fills (areas) and strokes (lines) yourself one by one. Try '''Art to Stitch (intelligent)''' first, i.e. use an '''auto-digitizing''' procedure.
[[image:stitch-era-auto-digitizing.png|thumb|600px|none|Art to Stitch and Image to Sections popup (auto-digitizing)]]
* You should now see the '''Image to Sections''' popup window, as shown in the picture below made for Stitch Era 11. It is the same in Stitch Era 17.
* Click on '''OK''' in the ''Image to Sections'' popup. You can ignore all the options this time.
[[image:stitch-era-auto-digitizing.png|thumb|600px|none|Stitch Era 11: Art to Stitch and Image to Sections popup (auto-digitizing)]]
* Click on '''OK''' in the ''Image to Sections'' popup.  


You now have produced so-called stitch sections.
You can ignore all the options this time. However, for your second attempt you may change a few global parameters, e.g.
* If you got a multi-needle machine, add a "trim" in the "Stitch Settings" tab, i.e. tick <code>use cut after sections</code>
* Change the default pattern
* Set minimal and maximal length that will translate zigzag stitches
 
You now have produced so-called stitch sections, i.e. you auto-digized a vector graphic that you can send to your embroidery machine. Congratulations.


'''(2) Generate stitches'''
'''(2) Generate stitches'''
* In order to produce real stitches from stitch sections, hit '''CTRL-F9''' or press the '''lightning button''' on top of the window. If you start being intrigued by all the program's features, you also can read [[Stitch Era - interface features for working with a design]] at some point.
 
* After doing so, '''untick''' the little round '''Vectors''' button to the right in order to see the stitch areas without interference from vector drawings. The button should show red instead of green. Make sure to turn it back on if you want to look at the vectors.
* In order to produce real stitches from stitch sections, you ''may'' have to hit '''F9''' or press the '''lightning button''' on top of the window. If you start being intrigued by all the program's features, you also can read [[Stitch Era - interface features for working with a design]] at some point.  
* After doing so, '''untick''' the little round '''Auxiliary''' button to the right in order to see the stitch areas without interference from the vector drawings. The button should show red instead of green. Make sure to turn it back on if you want to look at the vectors. Also make sure that the '''Embroidery''' button is green. Read [[Stitch_Era_-_interface_features_for_working_with_a_design#Hiding_and_locking_objects|Hiding and locking objects]] for more details.
Below is a picture that includes the lighing button and the auxiliar / embroidery hide/show buttons
[[image:stitch-17-hide-show-object-2.png|thumb|600px|none|Stitch Era 11: Lighning button and show/hide auxiliar and embroidery]]


If you are unhappy with the result, you could hit CTRL-Z and change for instance the stitch pattern (tab in the popup menu after clicking on Art to Stitch). If you are very unhappy, you will have to learn more ....
If you are unhappy with the result, you could hit CTRL-Z and change for instance the stitch pattern (tab in the popup menu after clicking on Art to Stitch). If you are very unhappy, you will have to learn more ....
Line 153: Line 196:
'''(3) Add other clipart or lettering or whatever'''
'''(3) Add other clipart or lettering or whatever'''
* Once you transformed vector graphics to "stitch graphics", you can add new vector objects and repeat the process.  
* Once you transformed vector graphics to "stitch graphics", you can add new vector objects and repeat the process.  
* However, each time you select a vector object for digitizing, it will create a new stitch section. In other words, you could end up with the same multiple stitch sections. To avoid this, either carefully select the vectors you plan to auto-digitize, or just kill all the stitch sections ('''not the vector objects''') an restart. More about this later. For the impatient: Untick the vectors button (top right), then hit CTRL-A to select all the stitch sections and hit DEL.
* However, each time you select a vector object for digitizing, it will create a new stitch section. In other words, you could end up with the same multiple stitch sections. To avoid this, either carefully select the vectors you plan to auto-digitize, or just kill all the stitch sections ('''not the vector objects''') and restart. More about this later. For the impatient: Untick the vectors button (top right), then hit CTRL-A to select all the stitch sections and hit DEL.


'''(4) (Re)generate the actual stitches'''
'''(4) (Re)generate the actual stitches if needed'''


* Click on the '''lightning button''' on top in the quick access menu bar. This will produce (reprocess) all the actual stitches. Since stitch sections can be resized, you may have to press this button again and again, i.e. each time you digitize a new drawing and/or each time you resize directly a stitch object.  
* If you created new stitch objects or made other modifications to the stitch sections, you can regenerate all the stitches. Select '''Reprocess all''' in the '''lightning button''' menu on top in the quick access menu bar, or press CTRL-F9 (or FN-CTRL-F9 on some machines). CTRL-F9 reprocess everything and may kill manual modifications at the stitch level.
* You also could set "Automatic Generate" (use the pull down menu of the same lightning button), but this option eats up more resources and may lead to your computer being frozen ....
* You also could set "Automatic Generate" (use the pull down menu of the same lightning button), but this option eats up more resources and may lead to your computer being frozen. Anyhow if automatic generate is off, you must press F9 button again and again, i.e. each time you digitize a new drawing and/or each time you resize a stitch object or change its parameters.


'''Moving on'''
'''Moving on'''
Line 173: Line 216:


* Save this file if not already done so. You always should keep a *.dsg file for re-editing.
* Save this file if not already done so. You always should keep a *.dsg file for re-editing.
* Now, create the "machine file": Either via the  "''File''" button (top left) or the little pull-down menu next to it, select '''Export as Embroidery Machine Format''' and choose an appropriate format, e.g. I chose *.jef for Elna/Janome.
* Now, create the "machine file": Either via the  "''File''" button (top left) or the little pull-down menu next to it, select '''Export as Embroidery Machine Format''' and choose an appropriate format, e.g. *.pes for Brother machines or *.jef for Elna/Janome.


'''The result'''
'''The result'''
Line 183: Line 226:
A picture showing the machine "printing" it, is in the [[Elna 8300]] article.
A picture showing the machine "printing" it, is in the [[Elna 8300]] article.


== Digitizing bitmap drawings ==
== Simplifying stacked vectors the easy way ==


[[image:lams-dolly-lrg.gif|thumb|right|200px|LAMS (Learning Activity Management System)mascot, original GIF file]]
Typical vector graphics not made for embroidery often uses stacked graphics, i.e. one part is drawn on top of another. In 2D computer graphics, this doesn't matter since a part doesn't have any height and graphics underneath won't shine through (unless the part on top is made transparent of course).
Digitizing bitmaps (raster images) may be a bit more difficult than converting vector graphics to stitches and for at least two reasons:
* Usually bitmaps include too many colors (photographs always do). As you shall see, even a pretty simple drawing may include over 20 colors.
* Lines are not clearly drawn and must be guessed by the vectorizing module.
* Speckles (i.e. small shapes) can be found and will have to be reduced.
 
As example, we shall use a drawing that is the mascot of the [[LAMS]] (Learning Activity Management System) software. The original vector image isn't available anymore and we therefore had to start from a somewhat fuzzy raster image, i.e. a 32KB *.gif file, that you see to the right and that you can enlarge.
 
In addition, we also introduce some additional auto-digitizing options, e.g. how to define stitch density and how to select a so-called fill pattern.
 
Towards the end of this tutorial we shall discuss another simple example, i.e. the Moodle logo.
 
=== Loading a bitmap ===
 
Procedure:
 
* Go to the '''Artwork''' tab
* Click on "Open Image" and select the image file (*.gif, *.jpg, *.png, etc.)
* Select the image by clicking on it (you may have to do this again !!)
* Resize the image by dragging a corner (you also could do this later, once it is vectorized)
* Crop the image if needed by clicking "crop image" button in the '''Edition''' panel on top left. I.e. you then can reduce useless margins on top, bottom, left and right by dragging the mouse over the area you want to keep. Hit CTRL-Z to restart.
* In both cases, make sure that you can see the whole picture by zooming in or out.
 
=== Reduce colors ===
 
We now suggest reducing the number of colors
 
Procedure:
* Click on the '''Color reduction''' button and the Image Filtering tool will pop up
* Select the number of colors. Less is usually better, but on the other hand important parts should still keep their "identity". E.g. looking at the first screenshot below, i.e. a 6-color version, one could argue that the "holes" of nose should not go away.
* Click on the '''Filter''' button and carefully examine the result to the right. If some shapes that you would like to stitch disappear, then augment the number of colors and try again by clicking on the ''filter'' button.
 
[[image:stitch-era-image-filtering-colors-2.png|thumb|800px|none|Color reduction with the Image Filtering Tool: Image on the left = 32 colors, image on the right = 6 colors]]
 
* After two trials we settled down for 8 colors:
 
The following screen capture shows a better result: the nose holes are still there. However, we have too many speckles, e.g. a dot in the saddle bag but we will remove these later. You also may notice the the IPod is no longer recognizable as such. Since it's a fairly small object that doesn't matter much. If it does matter, consider the option of adding some precise vector graphics at a later stage. Our immediate goal is to reduce colors as much as we can without loosing any drawing information. Changing threads a lot is not an option we like. Also, we (and you) probably don't own that many color variations anyhow. One maybe has two versions of ''beige'', but not three.
 
[[image:stitch-era-image-filtering-colors.png|thumb|600px|none|Color reduction with the Image Filtering Tool: Image on the left = 32 colors, image on the right = 8 colors]]
 
* Click on the green '''Return''' button to accept this color reduction.
 
* Save the file under a different filename, e.g. lams-2.dsg. We feel that it is important to keep a safe version for each major design step.
 
Remark: Before reducing colors, you also could try to saturate colors, augment contrast and darken the picture. Read [[Stitch Era - digitizing complex bitmap images]] where we discuss an example.
 
=== Conversion to a vector image ===
 
Let me just mention first a strategy I consider bad: Now that we have a simple bitmap we could start converting it directly to stitches. We might click on Convert (top menu bar) and see three choices: ''Art to stitch (intelligent)'', ''Art to Stitch (Area only'' and ''Image to Stitch''. "Art" refers to clean graphics, and in particular vector graphics. Our picture is sort of in between, e.g. some lines are quite fuzzy and Stitch Era will just complain. We also could select '''Image to photo-stitch'''. However, we will not use this procedure since it doesn't produce the kind of result we want.
 
We shall do a '''proper vectorization first'''. By the way, all good vector drawing programs like Inkscape (free) or Illustrator can trace bitmaps. If you are unhappy with the vectorizer of an embroidery program, try one of these tools. Anyhow, Stitch Era can trace a lamb as you shall see. Let's start:
 
'''Step 0 - Find the tool'''
 
* '''Prior to version 11 ?''': Select the '''Layout''' tab in the top menu bar line. Don't miss that or you never will even see the '''Convert to Vector''' button.
* '''Version 11.x''': Select the image tab in top menu bar line, if not already done so.
* Click on the '''Convert to Vector''' button to the right
 
Bitmap vectorization includes two major steps: (1) Additional '''cleanup of the bitmap''' and (2) '''parametrization of the bitmap tracing''' process.
 
'''Step 1''':
 
Let's cleanup the picture a bit, i.e. remove some speckles, manually merge colors and finally decide about the background color.
 
(1) Since we already reduced colors, we won't to that again. Move the slider '''Reduction''' to a figure that is higher. Since we have 8 colors, move it to 16 for example. The reason why we reduced colors with the image filtering tool ''beforehand'' is simple: in the vectorizer tool, for some reason, one cannot enter a precise number of just 7 colors for example.
 
(b) You may attempt to close so-called holes. "Holes" are small speckles, e.g. 2x2 pixels that we could eliminate. For our LAMS, we selected ''no'', since it would destroy the black borders of the legs. However, you also could select 4x4 and then wind up with some more "create" embroidery.
 
To try out these cleanup parameters click on '''Filter'''. You now can see a cleaned up picture in the right panel.
 
(c) Looking at the 8-color pictures (both sides), you notice maybe that we have three sorts of grey: a medium, a dark and very dark (or maybe it's black). We now can merge these three colors. Hold down the CTRL key and select each color and hit the '''Combine button'''. You then immediately could undo these mergers with the little undo icons. The resulting color is a sort of mix between the selected colors. If you find it ugly, don't worry, you will be able to change colors later if you wish.
 
[[image:stitch-era-vectorizer.png|thumb|800px|none|Vectorizer tool of Stitch Era, Version 10.x ! The "Convert to Vector" button is in a different place in version 11.]]
 
(d) Now there is final and very important decision to make. By default the vectorizer will treat white color as transparent background color. This means that white areas of the lamb won't be vectorized and could not be printed. If you plan to print the mascot on a white shirt, it's probably a good decision not to print these white areas, since the black outlines perfectly will define the contour of the lamb.
 
However, since we plan to print on other textiles than white, we do '''want the white areas to be vectorized'''. Therefore we turn transparent off, as in the screen capture below.
 
[[image:stitch-era-vectorizer-transparent-color.png|frame|none|Vectorizer tool of Stitch Era: Unset white as transparent color]]
 
'''Step 2''':
 
We now can transform this cleaned image into a so-called vector image, i.e. an image that will contain lines and fills (as opposed to the colored pixels that make up the current definition of the graphics).
 
In the vectorizer section, there a three vectorization parameters we can tune:
* '''Max Error''': increases or decreases the curvature with respect to the original picture.
* '''Sharpness''': Will reduce the number of points that define lines and outlines of shapes.
* '''Min Area''': Allows to eliminate smaller areas.
 
In a picture like this one that was originally a drawing (as opposed to a paint or a photograph), there isn't much need to reduce sharpness and to define minimal areas (unless you scanned a picture or the bitmap is really bad quality). Since the picture was made by a graphic designer we will mostly preserve his/her curves and put Max Error to 160, i.e. near the maximum. The sharpness parameter interacts with the Max Error. If Max error is big, sharpness will have less impact. If Max error is low, sharpness will have high impact. Try it ....
 
Vectorization is a trial and error process that you could repeat as much as you like. We decided to use the following parameters:
* Max Error = 160
* Sharpness = 1 (in order to preserve some of the lines in the satchel area)
* Min Area = 10 (the minimum, since the picture looked fairly clean).
 
You now can click on '''Accept/Return''' and the vectorization will be committed to the embroidery design. You now got so-called vector graphics as discussed in the beginning of this tutorial.
 
=== Remove unnecessary white areas ===
 
If you did decide to vectorize white areas you now have a really large background that will be stitched. Since we only want to stitch the lamb, we have to remove these. That is easy.
* Just click around the lamb and remove all the rectangles that go outwards by hitting the delete key. You also should remove the areas between the IPod cable and the face, since these are not part of the sheep either.


[[image:stitch-era-vectorizer-remove-background-areas.png|thumb|800px|none|Vectorizer tool of Stitch Era: Remove unwanted background area]]
In embroidery stacking one object on top of another may be wanted, but if you that with more than two layers, the stitched embroidery can become very stiff. If you stitch many layers on top of each other, the needle or the machine can break .....


* Save the file under a yet different filename. E.g. lams-3.dsg
In this section we will present two very simple solutions.  


=== Convert the vector image to stitch objects ===
=== Process Overlaps in Art to Stitch ===


* Select the whole vector drawing: Hit CTRL-A or select the lamb with a larger than the lamb rectangle
This option only requires ticking a checkbox:
* Select your vector graphics (CTRL-A) and open the embroidery TAB.
* After clicking on '''Art to Stitch (Intelligent)''' in the '''Image to Sections''' popup window, tick '''Process Major Overlaps''' or '''Process All Overlaps'''. Major overlaps will reshape larger vectors (e.g. the green ball to the left will become a moon) but small blue triangle will be stitched overt the red ball. Selecting "all" will also create a triangle hole in the red ball.
[[File:stitch-era-17-process-overlaps.png|600px|thumb|none|Simplifying (reducing) stacked vector graphics]]
* '''Done'''. However it would be a good idea to have the vectors slightly overlap, in particular in the "pull" direction.


* Now click on '''Convert''' on the very top menu. If you can't see this button, then you forgot to select the graphic.
Below you can see the result of just processing major overlaps. The circle was stitched as a "moon". The red circle wholy (i.e. without hole for the triangle). Objects have been moved to show the effect.
[[File:stitch-era-17-process-overlaps-2.png|600px|thumb|none|"Process Major" - Result with 2 stitch objects moved !!]]
Below is the "flat" solution, i.e. all overlaps processed.
[[File:stitch-era-17-process-overlaps-3.png|600px|thumb|none|"Process All" - Result with triangle stitch object moved !!]]


Now you should see four options in the top menu/ribbon bar (see the screen shot below).
=== Simplify the vector drawing ===
* Select '''Art to Stitch (intelligent)'''


[[image:stitch-era-convert-to-embroidery.png|frame|none|Convert to embroidery - Select a method]]
A similar approach is to simplify at vector level, i.e. before you translate to stitch sections as above.
* Select all vectors
[[File:stitch-era-17-vector-simplify-1.png|600px|thumb|none|Three overlapping vectors selected]]
* Then open the ''Artwork''/''Layout'' tab
* Select <code>Simplify</code> in the <code>Combine Vectors</code> pull down menu.
[[File:stitch-era-17-vector-simplify-2.png|600px|thumb|none|Simplify the vector drawings so that none will overlap.]]
The result looks like this, but I slightly moved the right circle and the triangle to the right in order to show how the drawing has been simplified, flattened.
[[File:stitch-era-17-vector-simplify-3.png|600px|thumb|none| Figures on top are preserved, figures underneath are cut]]


You now can configure three kinds of conversion parameters. Do not click on '''OK''' before you are done with all three tabs.
However these procedures will remove all overlaps automatically, i.e. not necessarily in the way you would like to. Sometimes, you do want to keep some overlaps and for various reasons. So let's dig a deeper into digitizing vector graphics.
* '''Basic settings''' allow to define whether you want to stitch just the lines, just the fills or both. We select both here. Then you also could decide how to deal with overlaps. Since we vectorized a picture we don't have overlaps as in a typical vector drawing and we don't need to care.
* You then can change the '''needle setting'''. E.g. we could replace our ugly grey with a nice black. You also could do this on your embroidery machine. Tip: Be careful when you replace colors with the palette, things can go wrong. Embroidery files don't really remember colors, but thread numbers. Each make has its own numbers (nothing seems to be properly standardized in embroidery world).
* Finally, you then can select a '''default stitching pattern type''', i.e. define how fills will be stitched. You also can decide under which conditions (i.e. which size) the program will treat a shape as a line, a column (ZigZag) or a fill in terms of stitching. We left all the defaults.


[[image:stitch-era-image-to-sections-1.png|frame|none|Stitch era conversion parameters (image to sections)]]
== Dealing with stacked vector graphics the hard way ==
 
[[image:stitch-era-image-to-sections-3.png|frame|none|Stitch era conversion parameters (image to sections)]]
 
* Now click on '''OK'''. You can turn off the little green '''vectors''' button on top right in order to hide the vector graphics and to show only the stitching schema (read more below).
* If you are unhappy, hit CTRL-Z and restart the whole procedure. Make sure to tick the '''vectors button''' again (little red button on top right), else you cannot see your drawing !
 
=== Create the stitches and look at them ===
 
* Click on the '''lightning button''' on top. This will produce all the actual stitches.
 
A stitch section describes how a part should be stitched, e.g. it defines fill patterns, stitch sizes, color, etc. but does not freeze the actual stitches. I.e. when you change the form, stitches must be regenerated.
 
For visualization of the embroidery, you could:
 
* Click on the '''Vectors''' button (little green pull down button/menu on top right). This will hide the vector drawings.
* Tick the simulation view (3D) in the lower left (F7). The simulation is more or less accurate, but it may provide a feel for the look you will get when you stitch it for real.
 
Again, if you are unhappy with the result there are several options
* Hit CTRL-Z and restart
* Kill all the stitch sections in the Object manager. To do so either hit CTRL-1 or the '''Object Manager''' tab to the right. At this point you also could consider having a glance at [[Stitch Era - interface features for working with a design]]
* Reload a file with a prior version
 
However, you also can make changes to Stitch Sections, e.g. add missing details. Read on.
 
=== Add extra art and fix thread color numbers ===
 
(1) If you feel that something is missing you now can add other elements. E.g. you could add bigger eyes, since the left one was somehow lost in the vectorization process and the right one is too tiny.
 
* Untick '''embroidery''' (top right button)
* Remove the small ugly graphics for eyes
* Replace by nice round eyes using "Closed shapes" Vector Graphics. Click on '''Artwork''' in the top menu bar first.
 
In case you add vector graphics '''after''' converting to graphics to stitches, you will have to '''convert''' these new vector drawings too. Select the new additions (e.g. the eyes), and proceed like before. Also, don't forget to hit the lighting button, once you are done. Also - after converting - make sure that the converted stitches use the thread you like. Open the Object manager, scroll down to ''Sections'', then select the section in the work area and examine the parameters in the object manager. You now can assign a '''different''' color to a "section", i.e. a stitched area. Finally, click the '''Optimize needles''' button again (see next item).
 
(2) Optimize Needles and print order
 
* Since you don't wish to re-thread more then once the same color, click on the '''optimize needles''' button in the '''Images''' palette in the toolbar to the left. You also could '''move around sections''' in the object manager in order to change print order. But this is more tricky since you also have to take into account underlays and such.
 
* Finally, you could create a new color palette and use color numbers of the thread make you use (e.g. Madeira instead of system DB), but you will have to do this properly. More about this later...
 
* Save the file again, e.g. name it lams-4.dsg. It is important to keep the DSG file, since it will remember all the vector graphics and informations about "stitching sections". A format like *.jef will not, and while you can open *.jef files, most information will be lost and resizing, for example, will be a pain.
 
=== Create a machine file ===
 
Now, '''generate the machine-specific stitch file'''. Select the file button (top left) and '''Save File''' -> '''Export as Embroidery Machine Format'''. Select *.jef for Elna/Janome or whatever format your machine does... then print and enjoy.
 
The result doesn't look exactly as expected since we probably didn't understand that the very light beige was encoded as some sort of white that we then fed into the machine. It's probably a good idea to create a full palette with all your threads and then use these or just use the system colors and then guess. A mixture of the two is confusing for the machine if we understood right....
 
[[image:LAMS-embroidery-2.jpg|thumb|800px|none|LAMS mascot embroidered]]
 
Also, this kind of complicated embroidery should maybe be a bit bigger and it might be a good idea to try a version with white areas removed. But firstly I shall make a version that has eye pupils again and add a missing part of the IPod. This is very easy, explained above and I actually already did it, but I don't have a picture ...
 
Anyhow, this was my very first embroidery from a bitmap and my second "creation" in total and I am happy with respect to that. - [[User:Daniel K. Schneider|Daniel K. Schneider]] 18:53, 20 May 2011 (CEST).
 
=== Digitizing crisp bitmaps - the easy way ===
 
This procedure doesn't work well with our LAMS mascot. There is a way of directly digitizing a bitmap to stitch sections. The first steps are the same.
 
* Import a bitmap file
* Bring out color saturation and contrast
* Reduce colors '''and this time make sure to use the small areas filter''', e.g. try with 4 and then progressively increase until Stitch Era stops complaining.
* Then directly go '''Convert->To Embroidery'''
 
I describe this in more detail in the [[Stitch_Era_-_digitizing_complex_bitmap_images#Auto-digitizing_a_picture_to_stitch_areas|Auto-digitizing a picture to stitch areas]] chapter of the ''digitizing complex bitmap images'' tutorial.
 
== Digitizing of stacked vector graphics ==
 
Typical vector graphics not made for embroidery often uses stacked graphics, i.e. one part is drawn on top of another. In 2D computer graphics, this doesn't matter since a part doesn't have any height and graphics underneath won't shine through (unless the part on top is made transparent of course).
 
If you feel that dealing manually with stacked objects as explained here is too complicated, there is a much simpler solution than the one we shall introduce in this section. It only requires ticking a checkbox:
* Select your vector graphics and click on '''Convert'''
* After clicking on '''Art to Stitch (Intelligent)''' in the '''Image to Sections''' popup window, tick '''Process Major Overlaps''' or '''Process Overlaps'''.
'''Done''', however this procedure will remove all overlaps automatically, i.e. not necessarily in the way you would like to. Sometimes, you do want to keep some overlaps and for various reasons. So let's dig a deeper into digitizing vector graphics.


Anyhow let's recall that graphics with several objects stacked on top of each other are not stitchable. After 3-4 dense layers, the embroidery will become bullet-proof, you may get a nest, or you could damage the needle etc. Let's now look at simple example, the [http://drupal.org/node/9068 Drupal logo] and let's prepare it for embroidery. Drupal is a fine [[portalware]] system.
Anyhow let's recall that graphics with several objects stacked on top of each other are not stitchable. After 3-4 dense layers, the embroidery will become bullet-proof, you may get a nest, or you could damage the needle etc. Let's now look at simple example, the [http://drupal.org/node/9068 Drupal logo] and let's prepare it for embroidery. Drupal is a fine [[portalware]] system.
Line 397: Line 276:
=== Import vector graphics to Stitch Era ===
=== Import vector graphics to Stitch Era ===


For importing SVG vector graphics, there are three solutions, that we present from cheapest to best.
In older versions, importing SVG vector graphics was either complicated or expensive (via Illustrator).
 
'''(1) From Inkscape'''


* Open the graphic in the free [http://inkscape.org/ Inkscape] or in another vector graphics program.
'''Import''' (Stitch Era 17)
* Select the whole graphic in the vector graphics program (CTRL-A) and copy (CTRL-C)
* Do '''not paste''' to Stitch Era !
* Instead, select the '''Artwork Tab''' in the top menu bar and click '''Paste EMF Vector'''.
* Select the '''Layout''' tab in Stitch Era and immediately resize the graphics to the right size. It may be way too small or far too big. This doesn't matter at all, since vector graphics is scalable without any quality loss.


'''(2) From Corel Draw X5'''
* Import the file through '''Artwork->Open Vector File'''
* Open the SVG in Corel Draw (Corel can't handle certain SVGs, but this one should work ok)
* In Stitch Era: Click '''Artwork -> Get from Application'''. Select Corel Draw.
 
'''(3) From Illustrator'''
* In Illustrator, save the SVG as *.ai file (Illustrator format)
* Import the file through '''Artwork->Open File''', Select Illustrator
* '''Important''': Make sure to use Stitch Era v. 11.10 (or better). Versions prior to this fall 2011 version could not directly import files from Illustrator. You had to buy and install Corel Draw and then also launch Corel since Stitch Era would ask Corel to import from Illustrator first.
 
This third solution always provides the best results since Illustrator handles SVG better than Corel (solution 2). With respect to solution (1), pasting the EMF vector from Illustrator works better than copying from Inkscape and this is due to the quality of EMF produced by each. The Inkscape copy may be much too big and badly positioned. The graphics is usable, but you will have to do some extra work...


'''Resizing'''
'''Resizing'''


You either can drag a corner or use the Size panel on top left to resize. In both cases, make sure that the object remains selected. After importing a graphic, it should be.
To resize, you can drag a corner or use the Size panel on top left. In both cases, make sure that the object remains selected. After importing a graphic, it should be. We prefer using the Size ribbon panel in the '''Layout''' tool for setting the height since we want the logo to be a precise 40.5mm.
 
We use the Size ribbon panel in the '''Layout''' tool for setting the height since we want the logo to be a precise 40.5mm.


[[image:drupal-logo-resized.png|frame|none|Drupal logo resized]]
[[image:drupal-logo-resized.png|frame|none|Drupal logo resized]]
=== Simplyfing the graphics the easy way ===
After fixing the size, we now can simplify the drawing, i.e. make sure that there will be no overlapping objects. You may have to ungroup the imported graphic first (depending on the source, i.e. EMF or Corel).
The procedure is a simple as that:
* Select all: CTRL-A
* '''Combine Vectors -> Simplify'''
... done


=== Simplify the graphics the hard way ===
=== Simplify the graphics the hard way ===
Line 519: Line 371:
* Telling Stitch Era what thread lines to use for a design (e.g. Madeira Rayon)
* Telling Stitch Era what thread lines to use for a design (e.g. Madeira Rayon)
* Making small changes to stitch sections
* Making small changes to stitch sections
This section was made for Stitch Era 11. Importing SVG is much easier now. The rest is similar.


=== Import of an SVG image ===
=== Import of an SVG image ===
Line 653: Line 507:
If you want to know more about tuning stitch areas, read [[Stitch Era - adjusting stitch sections]]
If you want to know more about tuning stitch areas, read [[Stitch Era - adjusting stitch sections]]


== Digitizing a picture and doing some repair ==
== Issues, tips and moving on ==


Below we shall go through the bitmap digitzing procedure again, starting from a different, more difficult bitmap file than the Drupal example introduced above.
Since many pictures you can find on the Internet are in raster format, we recommend that you now more to the [[Stitch Era - creating embroidery from raster images]] tutorial


[[Moodle]] is a popular learning management system and can work together with LAMS, a good reason to test the procedure explained in the previous sections. This time we will not look at details. We will summarized the procedure and point out some differences, e.g. parameters we changed.
In order to learn more about digitizing bitmaps and vector graphics, you also should learn some more basics:
 
We got the logo from [http://moodle.org/logo/ Moodle logos], and took the [http://moodle.org/logo/logo-1024x254.jpg 1024 x 254 Moodle logo] version that we then cropped down to the M. We didn't like the quality of the original [http://moodle.org/logo/mlogo-126x100.gif 126 x 100 M logo] version.
 
=== First simple steps ===
 
(1) '''Color reduction'''
 
In a first step we reduced the colors to 8. Again the threshold principle was being able to make out important details, e.g. in this case it was the structure of the graduation hat.
 
[[image:moodle-logo-color-reduced.png|frame|none|Reducing colors]]
 
(2) '''Vectorization'''
 
(a) Click on Filter, once in the Vectorizer tool
 
(b) We then combined the two ''light grey'' and ''very light grey'' areas. (Ctrl-click on both colors and hit the Combine button). There is also some superfluous white and we can't do much about this at this stage
 
(c) Leave white as background.
 
(d) Vectorizer settings are very different from the LAMS example. We left the two first parameters at minimum, since lines are already straight and the curves are fine. However we set ''min area'' to 30 in order to eliminate some speckles.
 
[[image:moodle-logo-vectorized.png|thumb|600px|none|Vectorized]]
 
The result isn't optimal, but probably we cannot do much better.
 
=== Cleaning up vector graphics ===
 
Looking at parts in the object manager we can see 27 vectors.
 
[[image:moodle-logo-removing-vectors.png|thumb|600px|none|Removing vectors (before)]]
 
(a) Remove the two parts to the right, i.e. some rests from the "o" letter.
 
(b) Then click on each vector in the manager in order to spot tiny speckles that we could remove (there wasn't any out side of the hat).
 
(c) Simplify the graduation hat. Since it has many little elements, we went for the following procedure: Redraw the top and simplify the bottom.
* We wrote down the color of dark grey. Stitch era doesn't seem to have a color sampler for the paint bucket. Get the RDB color numbers of dark grey by clicking on the paint bucket in the Images panel to the left (R:37, G:44, B:49).
* Redraw the top with some nice black. Move the new part away.
* After re-drawing it, get rid of all the elements of the top. We separated the larg dark grey using the split vector tool. Then, move the new top in place.
[[image:moodle-logo-hat-surgery.png|thumb|600px|none|Making a new hat]]
* Select all the lower parts of the the hat, union all the elements with the '''combine vectors->Add''' tool. Then, remove holes with the '''Remove Holes''' tool. At the end make it dark grey again.
The result is a bit simple and we have to see how it will print ...
 
(d) Adjust some of the vector shapes below the hat, using Bezier controls and also by getting rid of some control points (not explained here ...)
 
=== Convert to stitch sections and stitches ===
 
We are down to 17 simpler vector shapes and can convert to stitches
 
[[image:moodle-logo-simplified.png|thumb|600px|none|Simplified vector graphics]]
 
* Select all (CTRL-A) and '''Convert->To Embroidery'''
* In the Stitch settings, we selected fabric type = Wovens
* We also changed stitch order with the help of the object manager (tab to the very right). We put all the black stuff at the very bottom end since we want the hat to be printed last. This could be improved. E.g. we should have pushed the dark orange areas below the medium orange ones.
[[image:moodle-logo-reordered-stitch-sections.png|thumb|600px|none|Reordered Stitch sections]]
 
Remember that you will have to '''Reprocess all''' (CTRL-F9 or lightning button on top), after each change you make to stitch sections.
 
=== Result and redesign ===
 
Save as in your machine code and have it stitched...
 
'''First results'''
* I didn't have the right colors (e.g. missing orange and dark grey)
* Also the hat isn't great ...
 
Redesign:
* Made a border for the hat
* The hanging tassle (?) was converted to a filled stitching section. I killed the current stitch section, made the vector drawing a bit larger and reconverted again using different stitch settings (i.e. in '''Stitch Settings''', '''Shape recognition''' I set Maxiumum ZZ width to 1.0 mm and Minimum ZZ with to 0mm. The result isn't great either ...
 
[[image:moodle-logo-stitched.jpg|thumb|600px|none|Moodle logo (take 1 and 2). To the left the newer version, to the right the first version.]]
 
Colors are wrong since I didn't have the right threads. Some of the larger zig-zag stiches are not very clean and my cell phone doesn't take very nice pictures. Anyhow, we should start playing with other fill patterns at some point ...
 
== Issues, tips and moving on ==
 
In order to learn more about digitizing bitmaps and vector graphics, you first should learn some more basics:
* [[Stitch Era - adjusting stitch sections]]
* [[Stitch Era - adjusting stitch sections]]
* [[Stitch Era - vector graphics]]
* [[Stitch Era - vector graphics]]
Line 743: Line 520:
* [[Stitch Era - digitizing complex bitmap images]]
* [[Stitch Era - digitizing complex bitmap images]]


=== Import from Illustrator and Corel Draw ===
=== Import from Inkscape, Illustrator and Corel Draw ===


'''Import from Illustrator CS5'''
In Stitch Era 17:
* Artwork -> Get from application (the file must be open in the application). This works with Illustrator or Corel Draw.
* Artwork -> Open Vector File (ai, cdr, svg, wmf, etc.)


Import from Illustrator works great with CS5. Illustrator is needed to import somewhat complex *.SVG files since Corel can't handle SVG very well.
If fonts do not show, transform fonts to objects. E.g. in Inkscape select the text, then Menu Path -> Object to Path.


'''Make sure to use Stitch Era version 11.10 or better''' (fall 2011) ! In older versions, import doesn't work. However, if Corel Draw is installed on your machine, *.ai import works through the Open File menu. To import an *.ai file, you also can open the file in Corel Draw first in order to check if there are any losses. Do not copy/paste from Illustrator to Corel. The result we got was a bitmap...
In Stitch Era 11, Illustrator and Corel Draw files, but not SVG could be imported. Older versions only supported Corel Draw.


''' Import form Corel Draw X5'''
''' A simple test (2011) '''
 
Import from Corel Draw X5 works, but may fail under certain conditions
 
''' A simple test '''


Test file used: [http://www.openclipart.org/detail/green-plant-in-its-pot-in-three-different-phases-of-growth-by-palomaironique Green plant in its pot in three different phases of growth]
Test file used: [http://www.openclipart.org/detail/green-plant-in-its-pot-in-three-different-phases-of-growth-by-palomaironique Green plant in its pot in three different phases of growth]
Line 789: Line 564:


[[image:plant_002_growing_truesizer.png|thumb|600px|none|Stitches represented by Wilcom Truesizer]]
[[image:plant_002_growing_truesizer.png|thumb|600px|none|Stitches represented by Wilcom Truesizer]]
'''A simple test (2017)'''
{| class="wikitable"
|+ Lossy import of SVG - click on pictures to enlarge
! Original !! Direct SVG import !! Import via Illustrator
|-
| [[image:plant-002_growing.svg|thumb|250px|none|Original SVG]] || [[image:stitch-era-17-imported-vector-graphics-4.png|thumb|250px|none|Picture of direct SVG import]] || [[image:stitch-era-17-imported-vector-graphics-5.png|thumb|250px|none|Picture of imported SVG via Illustrator]]
|}
Stitch Era 17 can important standard simple SVG, but not gradient fills. After important most leaves were black. Therefore it still sometimes is recommended to import the SVG to Illustrator before importing to Stitch Era. Otherwise, you can replace the gradient fills by simple fills, i.e ungroup, select each leave, then select some kind of green.
Importing a file from Illustrator can be quite long, but the result is usually quite good. I auto-digitized (i.e. used Art-to-Stich (Intelligent) after removing the 3 shadows. Important: In the '''Artwork Processing''' Options, I ticked '''Process Major Overlaps''', because the drawing does have some over vector objects that overlap, e.g. they grey bands on the flow pots. On the other hand, without ticking there would have been two layers of embroidery in some places which is not necessarily a bad thing but require some testing.
[[image:stitch-era-17-imported-vector-graphics-6.png|thumb|600px|none|Stitch-Era 17 - Simulation of the embroidery]]


=== Filling emtpy areas with color ===
=== Filling emtpy areas with color ===


Unless we didn't find the feature, we found it difficult to fill imported vector patterns with color. When we wrote this, Stitch Era did't want to import illustrator files, but that now works starting version 11.10. If you don't own Corel Draw or Illustrator, you will have to use lossy EMF import that somehow produces fills with borders from lines. In order to fill such as mess:
Unless we didn't find the feature, we found it difficult to fill imported vector patterns with color. When we wrote this, Stitch Era did't want to import illustrator files, but that now works starting version 11.10. If you don't own Corel Draw or Illustrator, or if you do not want to work with the SVG format, you might have to use lossy EMF imports that somehow produce fills with borders from lines. In order to fill such as mess:
* Select all elements that need to be filled and then combine these into a single vector: '''Combine Vectors''' -> '''Add'''
* Select all elements that need to be filled and then combine these into a single vector: '''Combine Vectors''' -> '''Add'''
* Click on '''Fill holes''' in the reshape ribbon panel on top.
* Click on '''Fill holes''' in the reshape ribbon panel on top.
Line 798: Line 589:
[[image:stitch-era-loose-vectors.png|thumb|600px|none|Disconnected vector]]
[[image:stitch-era-loose-vectors.png|thumb|600px|none|Disconnected vector]]


Both vector objects and stitch sections are defined by several types of nodes and at some point you will have to learn how a vector drawing program works in order to make informed edits. You may want to read [[Stitch Era - vector graphics]] now.
Both vector objects and stitch sections are defined by several types of nodes and at some point you will have to learn how a vector drawing program works in order to make informed edits and for that you may want to read [[Stitch Era - vector graphics]] now. Otherwise we suggest that you look into creating [[Stitch Era - creating embroidery from raster images|embroidery from raster images]].
 
[[fr:Stitch Era - créer une broderie à partir d'un dessin vectoriel]]

Latest revision as of 01:22, 10 April 2021

Machine embroidery
Module: Stitch Era tutorials
Module - entry page
Stitch Era tutorials
◀▬▬▶
to improve beginner
2021/04/10
Prerequisite(s)
Objectives
  • Import vector graphics files
  • Digitize a vector graphic
See also

Objectives

  • Import vector graphics files
  • Digitize a vector graphic

Prerequisites

See also

  • Quality: to improve
  • Difficulty: beginner

Introduction

This beginner's tutorial for the Stitch Era embroidery software explains how to go from imported vector images to embroidery without understanding much about digitizing. Under the condition that you start from a simple vector graphics file (not a *.png or *.jpg file) you will get a fairly instant reward.

Next steps
  • Stitch Era - creating embroidery from raster images. Create embroidery from simple and relatively clean raster images (e.g. *.png or *.jpg files)
  • Stitch Era - adjusting stitch sections explains how to change parameters embroidery sections, e.g. stitch density, fill patterns, etc. after and auto-digitizing procedure.
  • Stitch Era - vector graphics. You don't necessarily need to learn how to draw vector graphics that you then can convert to embroidery (stitch sections). However, you will be able to speed up your work and you also could reuse principles (e.g. Bezier drawing) for manipulating stitch sections as well as in other multi-media programs.

Vector graphics formats and file extensions

There exist two types of graphics file formats:

  • Vector graphics are "mathematical" definitions of drawings and are in principle much easier to digitize. Vectors graphics are fully scalable, i.e. they will not loose quality if you change its size. Typical programs to create vector graphics are Inkscape (free), Illustrator and Corel Draw. Stitch Era can import SVG drawings or proprietary Corel Draw and Illustrator formats. Typical file formats are *.ai, *.svg, *.cdr, *.wmf and *.emf. Stitch Era includes its own vector graphics drawing program and it may be used in the first stage of designing an embroidery. You can use this module to fix imported vector graphics and/or to draw your own graphics objects.
  • Bitmaps (also called raster graphics) define a picture, e.g. a drawing or a photograph, in terms of little dots (color pixels). Bitmaps, by definition are lossy in two ways: (1) You cannot resize a picture without loosing quality. (2) Most file formats allow to compress (reduce the size) of a picture in a way that will loose some information. Bitmap drawings that appear to be crisp are in fact not. However, most clipart found on the Internet are bitmaps, unfortunately. Digitizing bitmaps usually implies a first translation to vector graphics as you shall learn. That process is called vectorizing. You could directly digitize a cleaned up bitmap file to stitch sections, but I wasn't satisfied with the result and therefore will not introduce this in any tutorial. Typical bitmap file formats are *.png, *.jpg and *.gif. PNG and the older GIF are optimized for drawings, whereas *.jpg is optimized for photographies.

Vector graphics formats and file extensions

There exist two types of graphics file formats:

  • Vector graphics are "mathematical" definitions of drawings and are in principle much easier to digitize. Vectors graphics are fully scalable, i.e. they will not loose quality if you change its size. Typical programs to create vector graphics are Inkscape (free), Illustrator and Corel Draw. Stitch Era can import SVG drawings or proprietary Corel Draw and Illustrator formats. Typical file formats are *.ai, *.svg, *.cdr, *.wmf and *.emf. Stitch Era includes its own vector graphics drawing program and it may be used in the first stage of designing an embroidery. You can use this module to fix imported vector graphics and/or to draw your own graphics objects.
  • Bitmaps (also called raster graphics) define a picture, e.g. a drawing or a photograph, in terms of little dots (color pixels). Bitmaps, by definition are lossy in two ways: (1) You cannot resize a picture without loosing quality. (2) Most file formats allow to compress (reduce the size) of a picture in a way that will loose some information. Bitmap drawings that appear to be crisp are in fact not. However, most clipart found on the Internet are bitmaps, unfortunately. Digitizing bitmaps usually implies a first translation to vector graphics as you shall learn. That process is called vectorizing. You could directly digitize a cleaned up bitmap file to stitch sections, but I wasn't satisfied with the result and therefore will not introduce this in any tutorial. Typical bitmap file formats are *.png, *.jpg and *.gif. PNG and the older GIF are optimized for drawings, whereas *.jpg is optimized for photographies.

A short view of the design workflow

In this tutorial series we shall show how to create embroidery from both types of graphics formats, vector and bitmap. Basically the workflow of creating embroidery looks like this. Optional steps are in [...] (brackets)

[ bitmaps ] -> [ vector graphics ] -> stitch sections -> generated stitches

Stitch sections (also called embroidery objects) are some kind of embroidery-specific vector graphics that define surfaces (areas) and lines (path) in terms of how these are going to be stitched. This "how" is defined with many many parameters. Professionals may directly create stitch sections. Others often start from a computer graphic file. Translation from vector graphic to stitch sections is called digitizing. When it is done automatically (Stitch Era can do that) it is called auto-digitizing.

This tutorial will explain how to deal with vector graphics, in particular the open SVG Internet format for which one can free artwork on web sites like openclipart or the noun project. If you are interested in dealing with raster image files (e.g. *.jpg and *.png*) you later should go through the Stitch Era - creating embroidery from vector images tutorial.

Quality of (semi) auto-digitizing

Before you start reading the rest, let me make clear that embroidery created from images through auto-digitizing will not be professional. As you shall see, it is fairly easy to digitize a bitmap or a vector graphic. The result will be acceptable and fine enough for certain purposes. However there will we three major problems:

1) The result may not convey the message you would like it to. E.g. the embroidery may include too many details.

2) Nice embroidery doesn't follow the same visual design principles as screen or paper graphics, i.e. somehow the result just doesn't look good.

3) Most embroidery will be stiff, i.e. not very pleasant to wear. Typically, in computer graphics shapes are are put on top of each other, because it's easier to draw that way and you can't see through (unless a color is made somewhat transparent). When you produce two or more overlapping dense stitch areas, then you get stiffness. Luckily, Stitch Era offers tools to deal with this problem.

The pictures below show the difference between a simple auto-digitized embroidery as explained in this text and one that was redesigned as explained in Stitch Era - digitizing difficult images

Simple vs. more advanced digitizing
Original bitmap
Logo auto-digitized
Logo redesigned and (mostly) auto-digitized
Logo redesigned take 2

That being said, simple auto-digitizing is the way to start and as you can see, after a day or two you already can produce designs that are nice enough to wear on your casual cloth :)

Digitizing of simple vector graphics

We found that digitizing vector graphics is much easier than digitizing bitmaps (see below). This is not a surprise of course. Vector graphics are clean mathematical descriptions of shapes (lines and fills) whereas bitmaps are just collections of pixels. Therefore, if ever you can, avoid starting with *.jpg, *.gif, *.png pictures. Digitizing photographs is another issue and much more difficult since you also will have to reduce colors, despeckle, smooth lines, etc.

Below is the rough procedure for creating embroidery stitch files from simple vector graphics. Stitch Era seems to be a fairly sophisticated embroidery suite and it can do much more. But starting with clean imported graphics files is probably the kind of stuff beginners would want to try first and in particular people who own either Illustrator or Corel Draw.

If can't find/produce a vector graphic that you would like to render as embroidery or if you have a nice bitmap (raster) image you would like to use, you can skip this section and directly jump to Digitizing_bitmaps.

So, let's look at the procedure step by step.

Prerequisites

You should install the free Inkscape program or own either Illustrator CS5 or Corel Draw. Both Illustrator or Corel Draw are rather expensive (unless you are a teacher or student).

The Inkscape (download) drawing program is free, open source and it runs on most operating systems (including Windows and MacOSX). Inkscape doesn't have the power of Illustrator, but it is a trusted and powerful standand Linux drawing program and not some kind of crippleware or adware. However since it is difficult to learn, you also should consider using a simpler program, e.g. Libre Office Draw and then export to SVG which can be easily imported into recent versions of Stitch Era.

Copying an anchor graphic in Inkscape

Decide the right size

Big embroidery is more difficult stich and very big one is (almost) impossible. We suggest starting with sizes that correspond to the smaller standard hoops that come with your machine. E.g. our Brother PR1050X has 10x10cm and a 18x13cm small/medium and medium hoops. You can have the software a select a hoop for you when you use the wizard mode: Home tab New -> Embroidery wizard (complete), however we prefer doing it manually before importing a design.

To select a hoop size:

  • Open the Home tab
  • Click on the Hoops pulldown menu
  • In the popup, select your brand (e.g. Brother) and select the size. Brand names do not really matter, but selecting a good maxium size of your embroidery is a good idea.
hoop selection

If you already imported a drawing, it may be in a bad place, i.e. not show within the hoop. to fix that:

  • Select all (CTRL-A)
  • Artwork / Layout tab
  • To Design -> Center at origin

In case you need to reposition both vector graphics and embroidery sections:

  • Make both Auxiliar and Embroidery visible
  • Select all (CTRL-A)
  • In the Block/Layout tab that you now should see: Click on Center of Design

Get and import vector images

(1) Get a vector image

Finding clip art on the web is quite a nightmare (read Clipart for some tips). We got ours from http://openclipart.org. If you want to "play along"

  • Point to this nice anchor.
  • Click on "View SVG".
  • Save the file using File->Save page as (normal browsers) or Right click->Save image as (IE).

Else, pick any other graphic from this repository. We suggest to start with a simple graphic, in particular if you never did any vector drawing before. Embroidery is low resolution process and it doesn't make sense to start from very complex fine-grained graphics. Also avoid any drawing that includes raster images. These cannot be imported.

Stitch Era can import the following popular formats: SVG, AI (Illustrator) and CDR (CorelDraw). DXF (Autodesk) and WMF are also supported. In older versions of Stich Era, depending on what graphics program you own, importing SVG files into Stitch Era was more difficult as explained in an older version of this article

(2) Import a supported format:

Click Artwork TAB -> Open Vector File

Select the SVG format (if you stick to our example)

Optional: Edit the vector graphics

You now have the choice to edit this a bit if needed. In principle you better do any editing in the drawing program. Anyhow, in the example shown here, I used Stitch Era to change a few thing. Selecting the white lines was a bit tricky since I couldn't select these parts even after ungrouping. Anyhow, select the object and the LAYOUT tab, then in the "grouping" ribbon to the right, tick ungroup all. You also could ungroup in the context menu. Now open the Object Manager, select the white Bezier Curver and hit DEL.

Ungrouped object
  • Next, in the VECTOR tab, Select Vectors Outline and Body and the set line thickness to 0.5mm. This will add an outline to the object and make it 0.5mm thick.
  • Then move on to auto-digitizing, but save the file first.

Trouble importing vector images

If the vector graphics do not import, make sure that your vector file doesn't contain any errors. Furthermore, some drawings can be too complex for Stitch Art to handle.

If you work with Inkscape, try some or all of the following in the Inkscape software:

  1. Replace gradient colors with simple colors (Stitch Era cannot handle these).
  2. Resize the graphics to a stitchable size, e.g. between 1 and 30 cm, else you won't see it. That being said, Stitch Era of course can resize and move artwork.
  3. Fit the document size to the picture size: Menu File->Document Properties. In the Custom size panel, open Resize page to content, then click Resize page to drawing or selection.
  4. Remove unused items (e.g. DEFs) File->Clean up Document.
  5. Optimize SVG: File -> Save as... -> Optimized SVG (the item is somewhere down the list, search for it). Before doing so, keep a copy of the old file, since this operation is very radical !
    • Tick "Enable viewboxing in the save dialog. This operation will do two things: insert a correct viewBox and set width and height attributes to 100%.
  6. If the above optimizing does not work, use an SVG cleaning program such as: http://www.codedread.com/scour/
  7. Remove non-standard SVG/Inkscape XML (plain SVG): File -> Save as... -> plain SVG. Since this operation will remove layers and other Inkscape-specific information, keep a copy of the old file if necessary.
  8. Do not work with files that embed raster images. To check if there are images, open the SVG with a web browser and look at the source. If you see something like the following, you got it wrong and you will have to remove these elements. You always can import a raster image in addition to a drawing, as explained in the Stitch Era - creating embroidery from raster images tutorial.
<image
      y="956.82056"
      x="114.51117"
      id="image3388"
      xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABQAAAAPYCAYAAACFWVSPAACvc0lEQVR42uz9d5xsW1ng/3/69Ln3
      .... many more lines cut ....

Similar principles apply to work with Illustrator (AI) or Corel Draw (CRD) files.

Again: Start from simple drawings or draw your own graphics.

Convert vector graphics to stitch sections and generate stitches

Stitch sections are stitch paths (lines) or areas (shapes) that are almost directly stitchable. A stitch section defines an object in terms of how it should translate to stitches. Stich sections use many parameters including thread color (called "needle"), density, stitch types (there are many kinds), entry and exit points. We introduce stitch section manipulation in the Stitch Era - adjusting stitch sections tutorial. For now, just read on ...

(1) Convert to stitch sections

  • If not already done so, select the vector object(s) first, e.g. move the cursor into the drawing area and press CTRL-A to select all of them.
  • Next, select the embroidery tab and select Art to Stitch.
Stitch Era 17 - Convert vector graphics - step one: Select Art-to-Stitch (intelligent)

In older versions, e.g. Stitch Era 11, the procedure was a bit different.

  • Click on Convert (notice how the tabs change in the program). If you can't see the "Convert button", make sure you really selected the objects on the screen !
Stitch Era 11 - Convert vector graphics - step one

You now can choose between letting the program decide for you or vectorize fills (areas) and strokes (lines) yourself one by one. Try Art to Stitch (intelligent) first, i.e. use an auto-digitizing procedure.

  • You should now see the Image to Sections popup window, as shown in the picture below made for Stitch Era 11. It is the same in Stitch Era 17.
Stitch Era 11: Art to Stitch and Image to Sections popup (auto-digitizing)
  • Click on OK in the Image to Sections popup.

You can ignore all the options this time. However, for your second attempt you may change a few global parameters, e.g.

  • If you got a multi-needle machine, add a "trim" in the "Stitch Settings" tab, i.e. tick use cut after sections
  • Change the default pattern
  • Set minimal and maximal length that will translate zigzag stitches

You now have produced so-called stitch sections, i.e. you auto-digized a vector graphic that you can send to your embroidery machine. Congratulations.

(2) Generate stitches

  • In order to produce real stitches from stitch sections, you may have to hit F9 or press the lightning button on top of the window. If you start being intrigued by all the program's features, you also can read Stitch Era - interface features for working with a design at some point.
  • After doing so, untick the little round Auxiliary button to the right in order to see the stitch areas without interference from the vector drawings. The button should show red instead of green. Make sure to turn it back on if you want to look at the vectors. Also make sure that the Embroidery button is green. Read Hiding and locking objects for more details.

Below is a picture that includes the lighing button and the auxiliar / embroidery hide/show buttons

Stitch Era 11: Lighning button and show/hide auxiliar and embroidery

If you are unhappy with the result, you could hit CTRL-Z and change for instance the stitch pattern (tab in the popup menu after clicking on Art to Stitch). If you are very unhappy, you will have to learn more ....

(3) Add other clipart or lettering or whatever

  • Once you transformed vector graphics to "stitch graphics", you can add new vector objects and repeat the process.
  • However, each time you select a vector object for digitizing, it will create a new stitch section. In other words, you could end up with the same multiple stitch sections. To avoid this, either carefully select the vectors you plan to auto-digitize, or just kill all the stitch sections (not the vector objects) and restart. More about this later. For the impatient: Untick the vectors button (top right), then hit CTRL-A to select all the stitch sections and hit DEL.

(4) (Re)generate the actual stitches if needed

  • If you created new stitch objects or made other modifications to the stitch sections, you can regenerate all the stitches. Select Reprocess all in the lightning button menu on top in the quick access menu bar, or press CTRL-F9 (or FN-CTRL-F9 on some machines). CTRL-F9 reprocess everything and may kill manual modifications at the stitch level.
  • You also could set "Automatic Generate" (use the pull down menu of the same lightning button), but this option eats up more resources and may lead to your computer being frozen. Anyhow if automatic generate is off, you must press F9 button again and again, i.e. each time you digitize a new drawing and/or each time you resize a stitch object or change its parameters.

Moving on

If your vector art is complex, e.g. includes objects that are stacked on top of each other then you got two solutions:

  • In the Image to Sections popup, tick Process Major Overlaps
  • Learn how to simplify vectors manually (recommended). This is explained below in the Digitizing of stacked vector graphics section.

Create a machine file

Once you got your stitch sections plus the generated stitches you then can export to a format that your embroidery machine can read.

Export the design to a machine file

  • Save this file if not already done so. You always should keep a *.dsg file for re-editing.
  • Now, create the "machine file": Either via the "File" button (top left) or the little pull-down menu next to it, select Export as Embroidery Machine Format and choose an appropriate format, e.g. *.pes for Brother machines or *.jef for Elna/Janome.

The result

Not too bad for my second digitalization / stitching (the first one was a smaller anchor without the lettering). There are some mistakes, probably because the tissue moved. I didn't iron a stabilizing tissue underneath. Also, the anchor head doesn't look as good since the bobbin underneath ran out of thread and I forgot to backtrack after changing it.

Stitched anchor with some lettering

A picture showing the machine "printing" it, is in the Elna 8300 article.

Simplifying stacked vectors the easy way

Typical vector graphics not made for embroidery often uses stacked graphics, i.e. one part is drawn on top of another. In 2D computer graphics, this doesn't matter since a part doesn't have any height and graphics underneath won't shine through (unless the part on top is made transparent of course).

In embroidery stacking one object on top of another may be wanted, but if you that with more than two layers, the stitched embroidery can become very stiff. If you stitch many layers on top of each other, the needle or the machine can break .....

In this section we will present two very simple solutions.

Process Overlaps in Art to Stitch

This option only requires ticking a checkbox:

  • Select your vector graphics (CTRL-A) and open the embroidery TAB.
  • After clicking on Art to Stitch (Intelligent) in the Image to Sections popup window, tick Process Major Overlaps or Process All Overlaps. Major overlaps will reshape larger vectors (e.g. the green ball to the left will become a moon) but small blue triangle will be stitched overt the red ball. Selecting "all" will also create a triangle hole in the red ball.
Simplifying (reducing) stacked vector graphics
  • Done. However it would be a good idea to have the vectors slightly overlap, in particular in the "pull" direction.

Below you can see the result of just processing major overlaps. The circle was stitched as a "moon". The red circle wholy (i.e. without hole for the triangle). Objects have been moved to show the effect.

"Process Major" - Result with 2 stitch objects moved !!

Below is the "flat" solution, i.e. all overlaps processed.

"Process All" - Result with triangle stitch object moved !!

Simplify the vector drawing

A similar approach is to simplify at vector level, i.e. before you translate to stitch sections as above.

  • Select all vectors
Three overlapping vectors selected
  • Then open the Artwork/Layout tab
  • Select Simplify in the Combine Vectors pull down menu.
Simplify the vector drawings so that none will overlap.

The result looks like this, but I slightly moved the right circle and the triangle to the right in order to show how the drawing has been simplified, flattened.

Figures on top are preserved, figures underneath are cut

However these procedures will remove all overlaps automatically, i.e. not necessarily in the way you would like to. Sometimes, you do want to keep some overlaps and for various reasons. So let's dig a deeper into digitizing vector graphics.

Dealing with stacked vector graphics the hard way

Anyhow let's recall that graphics with several objects stacked on top of each other are not stitchable. After 3-4 dense layers, the embroidery will become bullet-proof, you may get a nest, or you could damage the needle etc. Let's now look at simple example, the Drupal logo and let's prepare it for embroidery. Drupal is a fine portalware system.

The SVG version of this logo opened in Illustrator shows that the graphic is simple and that it is drawn in a single layer. However, some objects sit on top of each other.

Drupal logo SVG model in Illustrator

Since its difficult to see which parts are drawn on top of each other, could we tear apart different pieces. Indeed we can see a big blue tear. The light blue tear will be stitched on top. The "eyes" on top of both may not be digitized at all since white is by default the so-called background. Several problems that we now will address.

Drupal logo SVG model torn apart in Illustrator

We now could modify the drawing in Illustrator, i.e. make sure that parts are not layered on top of each other. However, we shall do this in Stitch Era since it also is a vector editing tool. Adapting this graphic for embroidery requires several steps, read on:

Import vector graphics to Stitch Era

In older versions, importing SVG vector graphics was either complicated or expensive (via Illustrator).

Import (Stitch Era 17)

  • Import the file through Artwork->Open Vector File

Resizing

To resize, you can drag a corner or use the Size panel on top left. In both cases, make sure that the object remains selected. After importing a graphic, it should be. We prefer using the Size ribbon panel in the Layout tool for setting the height since we want the logo to be a precise 40.5mm.

Drupal logo resized

Simplify the graphics the hard way

We also can simplify one element at the time and sometimes this needs to be done in order to preserve some overstitching. This procedure is going to be a little bit tricky, and you can skip this section.

  • Click on the drawing (graphic) and/or click on the Vector tab in the menu.
  • Ungroup the drawing by clicking on Ungroup in the Grouping panel you should see on top right.

Now let's do some subtractive solid geometry.

  • Save your file and call it for example drupal-2.dsg (things will go wrong).
  • Firstly, make a copy of the large light blue area and place it somewhere outside, as shown in the picture below.
  • Hold down the CTRL key and select first the very large dark blue area. You now only see this part. However you also must select the light blue area. Click where you know it will be underneath the tear. This is tricky. If you do it right you will see the light blue area again as in the picture below.
  • Now click on Subtraction in the Combine Vectors pull-down menu. It does the following. It will cut the area of the light blue area from the dark blue area. After the process, the light blue area will be lost and the dark blue area will be smaller.
Drupal simplification - combine vectors
  • Check: The dark blue area looks like a moon (great) and the light blue area is lost.
  • Move the copy of the light blue we made earlier back in place. Use CTRL-arrows to fine tune position (not just the arrows!) or zoom in at 600%.

Now let's do the same for the white areas, unless you want to stitch these on top of the blue areas.

  • Select all the white areas and make all of them yellow (select a color to the left). This way you can better see them. White on white just doesn't cut it for the kind of operations we are going to do.
  • Group this area. I.e. Click on Group
  • Make three copies of this group and move all three away from the graphic (doesn't matter where, just out of the way where you can retrieve them)
  • Hold CTRL-key, select dark blue area then select yellow group. Combine vectors -> subtraction.
  • Move a copy of yellow group back in place.
  • Reorder everything. Both light and dark blue areas should be in the back. Use the Forward & Backward menu to achieve this.
  • Hold CTRL-key, select light blue area then eyes and again subtract.
  • Move the remaining copy of the eyes in place.
  • Reorder everything if needed (blue stuff in the back)
  • Move the last remaining copy of yellow stuff in place, reorder, ungroup. You are done ...

Now save the file again, e.g. call it drupal-3.dsg and dismantle the graphics if you don't trust your skills. I don't trust mine ...

  • Pull the graphics apart and check if the areas really have been punched. In principle, all the three blue areas are now much smaller and don't overlap with each other or the yellow areas.
Drupal logo new parts - sanity check
  • Now reload the saved file (or backtrack with CTRL-Z)
  • Make the yellow parts white again

Finally, I also applied the same procedure to the little very light blue area on top.

Clean up the vector graphics

(1) As you can see, after simplification, some fine lines and can remain here and there. If you wish, you could remove these.

  • The best way to do this is to use the split vectors tool. This tool allows to draw a path (e.g. just a simple line) by inserting points. Draw a line (or another path) across the graphics you want to split. Right-click to accept. You may have to repeat the operation (sometimes the cut didn't work). Then select the separated area and kill it (hit DEL).
  • You also could try removing individual vector points (only recommended if you are familiar with basic vector editing.
Drupal logo - useless fine stuff that should be killed

(2) Verify that you don't have any useless little vector shapes and path hanging around.

  • Open the object manger (tab to the right of the workspace) and click on each of the vectors. Trash the ones that are useless (e.g. too small). You can find these, easily by clicking on each vector and then spotting the object in the work area.
Drupal logo - useless fine stuff that should be killed

(3) You also could change colors a bit. E.g. make the large outline around the tear black and turn back the yellow areas to white.

(4) Repair curves. Using the controls, you can make some minor adjustments to the various shapes. e.g. I made most of them a bit smaller and also made fine shapes a bit fatter (read more about vector editing in Stitch Era - vector graphics)

(5) Finally, you could reorder the vectors before you generate the stitches. Last vector will be translated to a stitch section that will be stitched last.

Convert to stitches

  • Select all (CTRL-A)
  • Click on Convert -> To Embroidery
  • Select Art to Stitch (Intelligent)

In case you are unhappy with the result, there are two options. You either can go back to vector drawing or edit the stitch sections.

Going back to vector graphics

  • Hide vectors (little vectors button on top right)
  • Open the Object Manager (right)
  • Kill all the stitch sections (CTRL-A + DEL). But really make sure that you have hidden the vectors.
  • Show vectors
  • Redraw and re-digitize

Edit stitch sections

  • Hide vectors
  • Edit stitch sections (either read Stitch Era - adjusting stitch sections or go through the "Evolution" example below)
  • Click on the little lighting arrow on top (reprocess all / CTRL-F9).
  • Do not convert again or you will get double layers of stitches. Of course you could (a) hide vectors and (b) kill all stitch sections, then redo the convert.
Drupal logo - digitized for embroidery (1st version)
Drupal logo. Both version use the same model, the one to the right somewhat moved during stitching.

Digitizing vector graphs - evolution

Let's introduce some more little tricks with another example. In particular we shall introduce the following:

  • Reorder vectors
  • Telling Stitch Era what thread lines to use for a design (e.g. Madeira Rayon)
  • Making small changes to stitch sections

This section was made for Stitch Era 11. Importing SVG is much easier now. The rest is similar.

Import of an SVG image

Via Corel Draw we imported the evolution steps SVG picture. We also tested import via *.emf and the result is much less convincing, although usable with a lot of extra work.

This is what we got:

Evolution - imported vector graphics

A first look at the import tells us that the vectors are not in the right order, i.e. objects that should be on top are not and we have to fix this. Stacking order can be changed in three different ways:

  • With the context menu (right click on the object and select Change Order)
  • Through the Order ribbon panel on top right.
  • Through the Object manager. This is the preferred solution if you have to change several. By dragging down a vector you can change its order.

An other option would be to change order at the stitch section level and some people prefer that, since you always have to do some work at that other level.

changing stack order by dragging in the object manager

As you also can see, by looking at the Object manager for example, all vectors are fills only, i.e. they don't define borders.

Color adaptation

We decided to work with three colors only and to attribute the same colors for each figure. Of course, you could decide otherwise.

  • Dark for the body
  • Light for the right arm and head
  • Medium for the right leg

Selecting colors is a bit of pain in stitch era since the palette in the Fill color drop down menu is really small and colors are very difficult to make out.

  • Select all heads and all right arms: Hold down the CTRL key and click on each.
  • To make sure that you selected everything, move the group away, then hit CTRL-Z to put it back. You then also could group the still selected objects (Grouping ribbon panel). Then move down the vector pack. But neither is really necessary if you are good at clicking.
  • Change colors for selected items with the pull down Fill color menu on top.

If you want to retrieve a color through a color name you are familiar with, you look up the RGB specification in the List of colors at Wikipedia for example. E.g. copper would be (184,115,51) according to Copper (color). Once you got the three Red/Green/Blue numbers you can enter these in the Select Color panel that you get through the fill color->More colors pull-down menu of Stitch Era.

We made:

  • head and right arms = copper (184, 115, 51)
  • body = dark brown (101,67,33)
  • right legs = coffee (150,75,0)

Of course, an embroidery machine doesn't care about colors, but sometimes it's nice to have the right colors already in the vector graphics.

If you already are familiar with vector graphics you now could improve the drawing a bit since it is rather crude. E.g. I changed the right arms as bit, i.e the upper joint and hands. We could improve more of course, but didn't

Simplifying

Since this is going to be a very large design, we can't print too many layer of stitches or there will be puckering and stiffness.

We simplify with the now familiar Combine Vectors (CSG) method:

  • Select All
  • Simplify.

The final result now has additional vectors, since parts like the body was cut in more than one piece:

Vector design ready to be digitized

Some of these vectors of too tiny to be stitched or will not really produce a nice results and you may remove these. We killed one tiny vector (#3) and kill some nodes of vectors that had tentacles. To remove the latter, click on the vector either directly in the workspace or in the object manager, then select the tiny little node control, right-click and delete.

Digitizing

Anyhow, whether you did make some adjustments or not, the design is now read for auto-digitizing.

  • Select all (CTRL-A)
  • Convert to Embroidery, select Convert -> To Embroidery in the menu on top
  • Select Art to Stitch (intelligent)

You now should see the Image to sections popup menu and we shall do some calibration instead of clicking on OK... Read on

Colors matching treads

  • Select the Needle Settings tab in the Image to Sections popup window that you should see now.
  • Tick "Assign artwork colors ...." (last item)
  • You can assign colors of your vector art to "needles" representing your threads with the little pull-down menu.

If you want to know more about managing colors and thread colors, read Stitch Era - vector and thread color. It will explain how to create both vector palettes and how to use thread palettes from your thread make and line.

  • Do not click on OK yet !

Change the stitch pattern

  • Open the Stitch section tab
  • Select your preferred pattern.
  • Change densities to 4 lines/mm

I also changed the default zig zag stitch into a random 3mm auto-split stitch

If you glide your mouse over a needle item in the palette to the left (do not click!) you will see what Madeiria thread you will be asked to use later (hopefully). As you will see, the color names are not the same, but there is nothing we can do about this we believe.

Needle info

Redo digitizing

  • Save the file first.

If you are unhappy with the result, open the object manager (to the right)

  • Click on sections to select all. Make sure you selected the stitch sections and not the vectors !
  • Hit CTRL-X
  • Now restart "to embroidery" since your stitch areas should be gone ...
  • For example, select each group of vectors using the SHIFT key and add borders if you rather would like to have a running stitch around each stitch section.
  • You also could improve the graphics in various ways, although this is sometimes a waste of time since stitches ignore the finer details, i.e. fine tuning rather may be done at stich area level.
  • In case you just want each figure as a single shape, nothing is easier than that: Select all, then combine vectors -> Addition. Finally, select each figure and Remove holes.

Anyhow, let's move on with the original design.

Tuning the stitch areas a bit

Looking at the result, we notice that some vectors were rendered as Zigzags and others as fill patterns. That's the way it works by default.

Since we believe that all heads should look the same, we make some little changes:

  • Untick Vectors (top right green button), not necessary but wise ...
  • Click on the sections you want to change, e.g. head of figures one and two, plus the chest of figures 3 and 5.
  • Then in the object inspector, change the fill. We used
    • Pattern
    • Density = 4
    • Name = PTM-0008
Changing fill types through the object inspector

Alternatively, you also can use the Area Fill ribbon panel on top. We prefer the object inspector since it shows more information and also because you can change properties of more than one object at the time.

In the picture below, we change the pattern type of all heads to PTM-008

Change pattern type of several stitch areas

Result

Result shown as Truesizer picture:

Changing fill types through the object inspector
  • Right leg of figure one may turn out to be ugly.
  • Some Zigzag stitches are very wide
  • We might actually transform each right leg into a multi-column irregular Zigzag stich for example (which I actually did before printing).

Result stitched:

Evolution embroidered

The design is not exactly glorious and the color contrasts are too big since I don't own a large thread collection. The irregular Zigzag stiches used for the legs add an interesting touch, though some people might prefer cleaner patterns. Finally, it might be a good idea to add running stitches of the same color around the outside border, but that's too much work right now ...

If you want to know more about tuning stitch areas, read Stitch Era - adjusting stitch sections

Issues, tips and moving on

Since many pictures you can find on the Internet are in raster format, we recommend that you now more to the Stitch Era - creating embroidery from raster images tutorial

In order to learn more about digitizing bitmaps and vector graphics, you also should learn some more basics:

It also may be useful to have a look at Stitch Era - trouble shooting and Stitch Era - interface features for working with a design

Then, move on to:

Import from Inkscape, Illustrator and Corel Draw

In Stitch Era 17:

  • Artwork -> Get from application (the file must be open in the application). This works with Illustrator or Corel Draw.
  • Artwork -> Open Vector File (ai, cdr, svg, wmf, etc.)

If fonts do not show, transform fonts to objects. E.g. in Inkscape select the text, then Menu Path -> Object to Path.

In Stitch Era 11, Illustrator and Corel Draw files, but not SVG could be imported. Older versions only supported Corel Draw.

A simple test (2011)

Test file used: Green plant in its pot in three different phases of growth

  • Corel Draw can't handle this fairly SVG simple file. I sometimes wonder why Corel is still around ...
  • Import to Illustrator. We then ungrouped (3 levels) and removed the shadows (click and DEL)
  • Saved the file as *.ai
  • Imported the file to Corel Draw
  • Import the Corel file to Stitch Era: Get from Application -> Corel Draw

The result is lossy (e.g. color gradients are removed), but the quality of the drawing is good enough for embroidery. Of course, the result should be adapted, i.e. simplified.

Lossy import of SVG - click on pictures to enlarge
Original Illustrator Stitch Era
Original SVG
Picture of simplified AI model
Picture of imported model via Corel

Now let's see what this gives with a minimal digitizing work.

  • I resized the whole design to about 12 x 7.8cm (i.e. a bit smaller than the A hoop on my Elna 8300).
  • I removed the grey bands on the pots
  • Simplify vectors:
    • Select all: CTRL-A
    • In the Combine tab, Click Combine Vectors->Simplyfy
  • Auto-digitizing procedure:
    • CTRL-A to select all
    • Convert -> To Embroidery
    • Art to Stitch (Intelligent)
    • Pattern density lowered to 4 lines/mm (I just prefer it a bit less dense)

Wilcom Truesizer shows the following (I am to lazy to print this myself for now). The image does not represent the full truth, i.e. some white areas that are printed first and underneath don't show at all.

Stitches represented by Wilcom Truesizer


A simple test (2017)

Lossy import of SVG - click on pictures to enlarge
Original Direct SVG import Import via Illustrator
Original SVG
Picture of direct SVG import
Picture of imported SVG via Illustrator


Stitch Era 17 can important standard simple SVG, but not gradient fills. After important most leaves were black. Therefore it still sometimes is recommended to import the SVG to Illustrator before importing to Stitch Era. Otherwise, you can replace the gradient fills by simple fills, i.e ungroup, select each leave, then select some kind of green.

Importing a file from Illustrator can be quite long, but the result is usually quite good. I auto-digitized (i.e. used Art-to-Stich (Intelligent) after removing the 3 shadows. Important: In the Artwork Processing Options, I ticked Process Major Overlaps, because the drawing does have some over vector objects that overlap, e.g. they grey bands on the flow pots. On the other hand, without ticking there would have been two layers of embroidery in some places which is not necessarily a bad thing but require some testing.

Stitch-Era 17 - Simulation of the embroidery

Filling emtpy areas with color

Unless we didn't find the feature, we found it difficult to fill imported vector patterns with color. When we wrote this, Stitch Era did't want to import illustrator files, but that now works starting version 11.10. If you don't own Corel Draw or Illustrator, or if you do not want to work with the SVG format, you might have to use lossy EMF imports that somehow produce fills with borders from lines. In order to fill such as mess:

  • Select all elements that need to be filled and then combine these into a single vector: Combine Vectors -> Add
  • Click on Fill holes in the reshape ribbon panel on top.
  • Make sure that remaining vectors slightly overlap with each other and the already filled ones. Select each disconnected vector in the object manager and zoom in a lot. Then, add again and fill holes.
Disconnected vector

Both vector objects and stitch sections are defined by several types of nodes and at some point you will have to learn how a vector drawing program works in order to make informed edits and for that you may want to read Stitch Era - vector graphics now. Otherwise we suggest that you look into creating embroidery from raster images.