How do I stroke a path in GIMP (or, just draw a line)?

I want to just draw a simple line in GIMP. The usual method, which I'm sure worked before, is to use a path then stroke it.

I selected the path tool, then clicked 2 points to make a straight line between them. Then I clicked the "Stroke path" button on the Toolbox window, and selected a size with what looks like standard options. But no line appears.

The path is showing in the Paths tab of the Layers window. Right clicking this and choosing stroke doesn't appear to do anything either. Did I miss something?


This is a great example of how hard-to-use GIMP is. The stuff is right there in front of you, but it is mystically difficult to actually use. Even after seeing the other answers, I still could not make it work, but persistence paid off. Perhaps this will help:

  • If a selection is active, optionally use Select | None to start a fresh selection.
  • Raise the Layers, Channels, Paths, Undo - Brushes, Patterns, Gradients dock if it is not already raised. When not raised, it is listed in Windows | Recently Closed Docks.
  • Click the Layers tab on the dock, click-select the layer to draw on, and make sure it is visible.
  • Click the Paths tab on the dock, click-select the path to trace, and make sure it is visible.
  • On the dock, right-click the path to trace, and choose Path to Selection. There are several ways to select the path, add a path to the selection, etc., but this is possibly the simplest for sake of teaching. In any event, a selection should appear that is tightly fit to the path. This default selection is almost certain to require modification...
  • Using the menu, expand the selection with Select | Grow. A dialog will raise. On it, grow the selection by at least the radius of the of the line to be drawn and click OK. Growing the selection larger is generally not a concern with respect to stroking a path.
  • Confirm that the marching ants bound an area sufficient for the stroke to draw, and that the area is within current selected layer boundaries. As needed, make adjustments to be sure the stroke can be drawn in the selected area.
  • On the Paths - Brushes dock, right-click the path to trace, and choose Stroke Path.... A Stroke Path dialog is raised.
  • Configure the Stroke details and click the Stroke button.
  • The desired results appear consistently, though mystically, the stroke jaggies can be quite terrible (at least for the path newbie). Anti-aliasing was my friend.

To summarize what others have said, you have to make sure that:

  • the correct path is selected
  • the active layer is visible and big enough to contain the path
  • the selection (if any) contains the path

A simpler way to draw a line is to select the tool you want, click at the first point and Shift-click at the second. This way you can't move the points around as you can with paths, but you can simply Undo and try again if you get it wrong.