What is Stroke to Path in Inkscape? [What You Need to Know]

Inkscape is a free-to-download vector graphic software. It was created to help users draw freely and improve the vector graphic design process. It has many fun features including stroke to path. But what is stroke to path and what does it do?

Stroke to path is a function that converts a brush stroke into a filled path consisting of two subpaths. The feature has been modified in software updates and will continue to improve in the future.

Many designers use stroke to path when creating graphics. So, read on to learn more about it and how it benefits designers.

What is the Purpose of the Stroke to Path Function?

Stroke to path converts a brush stroke into a filled path. The area of a vector graphic covered by the stroke is changed into a path filled with the same color as the stroke. The previous stroke is now treated as a path and the path will have no stroke associated with it. The original stroke will also be reset and you can treat it as a path by using path functions on it.

Paths are the elements in vector graphics that are a set of connected points or a closed space with a boundary, The boundary is called the fill and it can be a different color from the path.

Having both paths and strokes in a vector design makes it more functional and organized. 

How to Use the Stroke to Path Function

To convert a stroke to a path, there are two steps you need to follow:

  1. Select a path that has a stroke 
  2. Go to the path menu in Inkscape and select stroke to path

It is that simple. When the function is complete, there will be a group of the two paths: the original fill and the stroke that has changed into a path. Ungroup them by navigating to the object menu and selecting ungroup. Or you can leave them grouped if it better suits your design.

If you have the nodes feature enabled, you can manipulate all the nodes along the path individually to further customize your graphics. Moving the nodes around allows you to create a seemingly infinite variety of  shapes.

Other Path Functions

Besides the basic stroke to path function, there are other options you can use once the stroke you want is converted to a path. These are:

  • Break apart– changes the sub-paths that result from stroke to path into two separate paths, one inside the other 
  • Union– combines the paths created from stroke to path so that just the outer path is left

It is uncertain if these functions remain since updates were made to the stroke to path function. Let’s assess the changes made to the stroke to path function in the latest update.

How the Stroke to Path Function Has Changed 

Like any software, Inkscape to updated regularly to improve performance and the user experience. An update to Inkscape, version 1, was released on May 1st, 2020. As a result, the stroke to path function changed slightly from version 0.92 to version 1 of Inkscape. This is how the function has changed from the old version to the new version. 

Old Stroke to Path

If you have a circle with a green fill and a red stroke, and you activate stroke to path on it. The red stroke changes into its own path, and the green fill disappears,

Although there is not a concrete reason as to why the fill disappears, a reasonable guess would be that it was because the fill was not considered part of the path.

New Stroke to Path

When you select stroke to path on the circle with the red stroke and green fill in the newer version of Inkscape, you will not see immediate visual changes on screen. Instead, you will notice that the red stroke and the green fill become independent paths that are grouped together. 

Although this is not a big change, it is a useful one because you can manually select what happens to each path, rather than the green fill just disappearing and being difficult to acess. This means that you can better customize the vector designs you create.

Conclusion

Stroke to path is a function that converts a stroke on a vector graphic into a path and two subpaths. The paths help the vector design become more organized and customizable. Stroke to path has been streamlined between updated to the Inkscape software, but it is still the same feature you know and love.