Posts: 12
Threads: 6
Joined: Nov 2019
Reputation:
0
Operating system(s):
Gimp version: 2.10
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.
Posts: 6,362
Threads: 276
Joined: Oct 2016
Reputation:
565
Operating system(s):
Gimp version: 3.00RC1
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.
Posts: 12
Threads: 6
Joined: Nov 2019
Reputation:
0
Operating system(s):
Gimp version: 2.10
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.
Posts: 4
Threads: 1
Joined: Nov 2018
Reputation:
0
Operating system(s):
Gimp version: 2.10
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.
Posts: 1
Threads: 0
Joined: Mar 2021
Reputation:
1
Operating system(s):
- Windows Vista or 7, 8, 10 (64-bit)
Gimp version: 3.0
(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.
Posts: 6,362
Threads: 276
Joined: Oct 2016
Reputation:
565
Operating system(s):
Gimp version: 3.00RC1
(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.
Posts: 851
Threads: 11
Joined: Oct 2016
Reputation:
89
Operating system(s):
- Windows (Vista and later)
Gimp version: 2.10
(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.
Posts: 186
Threads: 26
Joined: Sep 2017
Reputation:
10
Operating system(s):
- Windows (Vista and later)
- Linux
03-20-2021, 12:34 AM
(This post was last modified: 03-20-2021, 12:35 AM by mholder.
Edit Reason: spelling
)
(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.
Posts: 1
Threads: 0
Joined: Apr 2022
Reputation:
0
Operating system(s):
Gimp version: Don't know yet
(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
Posts: 149
Threads: 2
Joined: Mar 2019
Reputation:
56
Operating system(s):
Gimp version: 3.0
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.
|