Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
make lines thicker on already drawn object
#1
I have several objects that are already drawn. After finishing them, I think they need to have thicker lines. Is there a way to make this so, without having to redraw the objects with a thicker line in the pencil or path tool?

I'm using GIMP 2.10 on linux.
Reply
#2
If you used the path tool, it's only a matter of re-stroking with a wider line.

Otherwise, starting with this;

   

Apply a Gaussian blur:

   

Start the Curves tool, and make a diagonal across the white part on the right (which is the histogram of your blurred image)

   

Result:

   

The trick being to find the position/slope of the diagonal which is the best compromise between smoothness and blurriness.
You can use the Threshold tool instead (but you will have jagged edges)(Threshold is just Curves with a vertical drop). You can also use Levels.
Reply
#3
Ofnuts,

That did the trick. I am curious about the Threshold and Levels tools, but that's academic at this point. Thank you for the information. The steps in your explanation were helpful.
Reply
#4
This is awesome! It's exactly what I needed to know, so thank you very much. Using the Paths tool for thickening lines is so time-consuming and tedious and this worked perfectly.
Reply
#5
(12-31-2019, 04:39 PM)Gully Wrote: I have several objects that are already drawn. After finishing them, I think they need to have thicker lines. Is there a way to make this so, without having to redraw the objects with a thicker line in the pencil or path tool?

I'm using GIMP 2.10 on linux.

I found an even better solution:
"Select -> By Color" to select the black lines
"Select -> Grow" to widen the selection
Set the background color to the line color wanted, remove alpha channel, and press delete.
Reply
#6
(03-19-2021, 03:01 PM)Zorpheus Wrote:
(12-31-2019, 04:39 PM)Gully Wrote: I have several objects that are already drawn. After finishing them, I think they need to have thicker lines. Is there a way to make this so, without having to redraw the objects with a thicker line in the pencil or path tool?

I'm using GIMP 2.10 on linux.

I found an even better solution:
"Select -> By Color" to select the black lines
"Select -> Grow" to widen the selection
Set the background color to the line color wanted, remove alpha channel, and press delete.

This is very artificial, and you would get the same result by bucket-filling the selection with the color. If the layer isn't opaque all over, the alpha channel is precious, don't delete it if you can avoid it.
Reply
#7
(12-31-2019, 04:39 PM)Gully Wrote: I have several objects that are already drawn. After finishing them, I think they need to have thicker lines. Is there a way to make this so,

Another method.

If it is black lines on a white background (or dark lines on light background), you can use Filters > Generic > Erode

Doesn't work on a transparent background. But you can put a white background below the lines, merge down, and then use Erode. Now use Color to Alpha to remove the white background.
Reply
#8
(03-19-2021, 08:37 PM)Blighty Wrote:
(12-31-2019, 04:39 PM)Gully Wrote: I have several objects that are already drawn. After finishing them, I think they need to have thicker lines. Is there a way to make this so,

Another method.

If it is black lines on a white background (or dark lines on light background), you can use Filters > Generic > Erode

Yes, Erode and Dilate are excellent ways to do this, my personal favorite especially with masks.  The only issue I have is the results tend to get kind of square edged.  I have found that a mean curvature blur helps round out the square edges a bit.
Reply
#9
(12-31-2019, 05:37 PM)Ofnuts Wrote: If you used the path tool, it's only a matter of re-stroking with a wider line.

Otherwise, starting with this;



Apply a Gaussian blur:



Start the Curves tool, and make a diagonal across the white part on the right (which is the histogram of your blurred image)



Result:



The trick being to find the position/slope of the diagonal which is the best compromise between smoothness and blurriness.
You can use the Threshold tool instead (but you will have jagged edges)(Threshold is just Curves with a vertical drop). You can also use Levels.

Can someone please explain this in a bit more detail, I have tried and cant get it to work - Im new to gimp, still learning, thank you
Reply
#10
If the layer you are working on only contains grayscale values (so no colors and no transparent pixels), you can use the trick of applying the hidden filters used by Select > Grow or Select > Shrink.

Example: for growing black lines on white background, you can do:
Filters > Generic > GEGL Graph... and type:

Code:
gimp:shrink radius-x=5 radius-y=5 edge-lock=yes

or using the grow filter (for the same result):
 
Code:
invert
gimp:grow radius-x=5 radius-y=5
invert

Adjust radius-x and radius-y for your needs.
Reply


Forum Jump: