Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
Interesting, I could not get the stroke path button in the Paths dialog to work either. Then I tried the menu entry Edit/Stroke Paths and it worked and after that the Paths dialog stroke paths button worked. –  W_Whalley Nov 11 '11 at 16:45
    
same problem here! –  thias Nov 25 '11 at 13:05
    
What's confusing is sometimes this works fine. I created a new image just now, made a path, then stroked it and voila, perfect. –  DisgruntledGoat Nov 25 '11 at 16:14
1  
Uhm sorry misstranslation...layer! And, maybe was the path out of the selection? –  clabacchio Mar 30 '12 at 11:06
1  
If you're not that interested on the path and just want to draw a line you can use the brush tool. Click where you want point A to be, hold shift and then click where you want point B to be. –  Alex May 22 '13 at 16:58

3 Answers 3

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.
share|improve this answer
    
Actually, click selecting the path and clicking the red box icon below the path list is easier than right-clicking the path and selecting Path to Selection. –  kbulgrien Sep 13 '13 at 21:14
    
Even simpiler, Select All. Another note: It seems that trying to stroke a path on a layer that contains text might create an issue such that even when the layer is selected, the stroke is not drawn. It may be beneficial to stroke a path on a layer, and merge it down as desired. –  kbulgrien Sep 16 '13 at 15:50
    
Don't be baggin' on the Gump... It's almost like Photoshop, but remember that "Life is like a box of Chocolates..." –  Fiasco Labs Mar 23 at 18:30

I just had this issue as well, I think you have to select the path after making it, because when I go to Select->From Path, then Edit->Stroke Path, it works the way I expected it to (a line appears.) I'm a GIMP novice, so perhaps someone else can explain why you need to select the path after making it.

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.