Inkscape Tutorial for Creating an Offset Path

Continuing the discussion from Glowforge's Trace Functionality:

I’m going to start with Inkscape since it is the cheapest (free) drawing program. (I’ll get one up for Illustrator sometime this weekend; CorelDraw if no one else does one first.)

This technique is used to create a “white space” around the image that one is engraving before cutting it out.
(Like a sticker sometimes has.)

If you need to pick up Inkscape, the link is here, and you want to download the latest stable release: (version .91)

https://inkscape.org/en/download/


Gonna do this extremely basic for those who have never used a drawing program before, so feel free to skip this beginning section if you’re already familiar with drawing programs.

Initially when you double click to open Inkscape, it’s going to take a while to open.
(Like up to a minute or two on my computer, and mine is turbo-charged – be patient.)

First screen looks like this. The two buttons you’ll need to locate initially are pointed out below.

  1. The black arrow in the upper left column is the Selection Arrow. Any time you want to choose something to work on in your file, you click on that arrow first, then click on the item to select it.

  2. The 2nd thing you need to locate is the File button.

Some drawing tips:

  1. While you are preparing your drawing, try to create as much contrast between the paper and the lines as possible. Black ink on white paper will give you a better result than pencil on parchment. Light colors are not going to scan well, most auto-trace programs cannot differentiate well between pale yellow or pink and white.

  2. Smudged lines are going to give a very messy outline when the item is traced. You want to create a clean crisp delineation between the black and the white for the auto-trace function to pick up.
    (There’s a reason why they use markers for the Glowforge demos.)

  3. The higher the dpi (dots per inch) that you scan with, the better detail you are going to get in your scan, but the larger file size might crash the drawing program. It’s a trade-off.
    Stuff you screen cap from the internet is 72 dpi, low resolution, and you generally don’t get a very good trace from it. Try to scan in the 100-300 dpi range for a better trace.

Okay that’s it for the basic stuff…here we go:


  1. Scan your image and save it as a jpg file to your computer.

  2. Open Inkscape.


Open the image file:

  1. Click File >Open

  2. In the Files of Type: click the little dropdown and choose All Images

  3. Find your jpeg scan file and open it.

(I’m just going to use this little leprechaun because he’s handy. Pretend it’s a drawing with clean edges.)


Trace the image to create a vector path around it:

  1. Select the drawing by clicking on the black Selection Arrow, then on the drawing.

  2. Click on Path > Trace Bitmap

In the little dialog box that pops up:

  1. Choose the Brightness Cutoff radial dial and set the Threshold to about 0.90

  2. Check Remove Background.

  3. Click on Update to refresh the little silhouette and see how it looks.
    (You want a solid black silhouette of the drawing.)

When you get that looking about right, click on OK.

You just created a vector path around the object.

To see the path, which is currently filled with black fill color, and has no stroke color assigned to it:

  1. Click on the Fill & Stroke button in the right column.

  2. Click on the X in the upper left corner, with the Fill tab selected, to remove the Fill color.

  1. Then click on the Stroke color tab to bring it to the front.

  2. Click on the solid rectangle (2nd button) to assign a stroke color to the vector path.

Now you should see the vector line appear around the image.


Offset the vector path away from the image:

  1. Select the vector path itself. (Click on the black selection arrow, then anywhere on the path.)

  2. Click on Path > Outset several times. (The vector will move farther out away from the image with each click.)

When you are happy with the placement, you’re done. (You can use Path>Inset to move it backwards
if you need to.)


Save the File:

  1. Choose File > Save As

This next bit is very important, so be sure to read it.

When you save a file in Inkscape, it automatically defaults to a proprietary Inkscape SVG format that no one is going to be able to read, (update: although Glowforge might be able to, so you can try it and see.)

If not, you can select Plain SVG as the File Type in the dropdown.

46 Likes

That is actually far easier than the method I had figured out. Going to have to remember Outset.

9 Likes

I am learning inkscape and this is a big help.
Excellent write up, thanks.

4 Likes

Thanks. Great writeup. I know inkscape more or less, but this will save me a bunch of fumbling around.

3 Likes

Great!
Thank you for your time demonstrating this! :sunglasses::thumbsup:

2 Likes

Thanks for the great write-up @Jules - I know quality takes effort!

2 Likes

Great demo, very useful.
A lot of the time I create a single path that is an outline for the item (usually but joining all the parts together. Path->Union).
Then I can create a stroke with a specific width and convert that back to two separate paths (Path->Stroke to Path)
I’ll split the new paths back into their constituent parts (Path->Break Apart) and delete the inner paths.

This tends to give me more control over exactly how far the line is outset and I should write it all up much better like @Jules has done

5 Likes

I’m about to go hit @dan up for a separate Tutorials Category, so we can get them somewhat corralled into one place, otherwise we’ll never find them six months from now…I’ve already lost a couple. :unamused:

6 Likes

That is the process I had figured out when needing this effect (posted it here midway through a mother’s day sign project). This approach is fewer steps, as it doesn’t create the inner trace. So I am glad you pointed out that the other method lets you assign precisely how large your buffer zone is.

In cases where it is pure aesthetic, and it just needs to be “far enough to look good” I will use this fast method. But in cases where I need a specific size outline, I’ll remember the other.

2 Likes

bookmarked all three. I’ll need these later.

2 Likes

I always enjoy a good tutorial. Thanks for the post.

2 Likes

My pleasure! :wink:

2 Likes

Hopefully a category like that would be moderated so that only actual tutorials get accepted as threads. In other forums I read that sort of un-moderated category quickly fills with threads requesting tutorials, greatly reducing the signal-to-noise ratio.

1 Like

Agreed…but they’re currently scattered around inside of totally unrelated topics now, which is worse.

After a while, the bookmarks start to pile up, and you can’t always find what you’re looking for without a lot of re-hashing anyway.

No easy answer for this on a social style forum.

It might not be feasible, but I thought it wouldn’t hurt to ask. :slight_smile:

2 Likes

Love the idea of a Tutorials category, but in the meantime, asking the authors to tag each one “tutorial” (like your’s) would make them easy to search &/or bookmark, e.g. http://community.glowforge.com/search?q=tags:tutorial

7 Likes

I think that’s underway as we speak. :slight_smile:

1 Like

Bookmarked. Thank you…

2 Likes