GIMP Chat http://gimpchat.com/ |
|
Path: reduce the number of nodes while keeping the shape http://gimpchat.com/viewtopic.php?f=8&t=17879 |
Page 1 of 1 |
Author: | level_0 [ Fri Dec 20, 2019 5:30 am ] |
Post subject: | Path: reduce the number of nodes while keeping the shape |
GIMP Version: 2.10.14 Operating System: Windows GIMP Experience: New User ![]() I cut a flower and then alpha to selection and edit / selection to path. Then I want to act on the path, then I appear the nodes and there it is the horror because lots of nodes overlap. How to have the same path with a minimum of nodes, without being obliged to delete the nodes 1 by 1 with ctrl + shift? Example: ![]() |
Author: | rich2005 [ Fri Dec 20, 2019 6:19 am ] |
Post subject: | Re: Path: reduce the number of nodes while keeping the shape |
Nothing that I know of in Gimp. You should really start creating paths by hand. It gets easier with experience and practice. However, you can use Inkscape. Export the path from Gimp as an svg then open that svg in Inkscape. Attachment: 01-path.jpg [ 134.69 KiB | Viewed 5164 times ] Simplify the path in Inkscape, one keypress ctrl-L, and then save the resultant svg Attachment: 02-path.jpg [ 133.64 KiB | Viewed 5164 times ] Import the Inkscape svg back into Gimp. Attachment: 03-path.jpg [ 103 KiB | Viewed 5164 times ] |
Author: | level_0 [ Fri Dec 20, 2019 6:59 am ] |
Post subject: | Re: Path: reduce the number of nodes while keeping the shape |
rich2005, ![]() Not used Inkscape for several months .. (and I only learned a few basics) so by opening the way in Inkscape, I found only the solution to remove 1 by 1 the nodes ...So I'm putting off studying paths with Inkscape until later. rich2005 wrote: You should really start creating paths by hand. It gets easier with experience and practice. I started a long time ago, ![]() |
Author: | Blighty II [ Fri Dec 20, 2019 8:11 am ] |
Post subject: | Re: Path: reduce the number of nodes while keeping the shape |
level_0 wrote: rich2005, ![]() so by opening the way in Inkscape, I found only the solution to remove 1 by 1 the nodes In Inkscape use Path > Simplify (or Ctrl-L). No more than that required. |
Author: | Konstantin [ Fri Dec 20, 2019 8:34 am ] |
Post subject: | Re: Path: reduce the number of nodes while keeping the shape |
level_0 wrote: there it is the horror because lots of nodes overlap. The nodes do not overlap. The control points are just displayed as overly big. rich2005 wrote: Simplify the path in Inkscape, one keypress ctrl-L, and then save the resultant svg This is not really advisable. To get a good reduction of nodes, you have to apply Simplify more than once, but this also results in reduction of resolution. Meaning the path will loose its shape with each step. Its even worse when you hit CTRL + L several times in a quick fashion, because that makes Inkscape apply the simplification in a more aggressive way. http://tavmjong.free.fr/INKSCAPE/MANUAL ... iting.html (bottom of page) Attachment: toosimplify.jpg [ 62.34 KiB | Viewed 5134 times ] |
Author: | ofnuts [ Fri Dec 20, 2019 8:46 am ] |
Post subject: | Re: Path: reduce the number of nodes while keeping the shape |
level_0 wrote: GIMP Version: 2.10.14 Operating System: Windows GIMP Experience: New User ![]() I cut a flower and then alpha to selection and edit / selection to path. Then I want to act on the path, then I appear the nodes and there it is the horror because lots of nodes overlap. How to have the same path with a minimum of nodes, without being obliged to delete the nodes 1 by 1 with ctrl + shift? Example: [ Image ] Nodes don't overlap, there are just many ![]() You can possibly get a simpler path by blurring slightly (a copy of) the layer before doing "Alpha to selection+Select to path" (in other words, simplify the shape before getting a path from it). When the shape has sharp corners, "Select>To path" sometimes creates sub-pixel tangents that can be a nuisance when stroking the path. My ofn-remove-tangents script can fix these. |
Author: | level_0 [ Sat Dec 21, 2019 1:30 pm ] |
Post subject: | Re: Path: reduce the number of nodes while keeping the shape |
Thank rich2005 Thank you Konstantin, I put the link in a folder "Inkscape tutorials" in my bookmarks. Thanks ofnuts, I tried the first method with the blur and it is a little better. I downloaded your plugin "remove" but not yet tested. ![]() |
Author: | Konstantin [ Sat Dec 21, 2019 1:56 pm ] |
Post subject: | Re: Path: reduce the number of nodes while keeping the shape |
level_0 wrote: Thank you Konstantin, I put the link in a folder "Inkscape tutorials" in my bookmarks. Its not a tutorial, just the Inkscape manual. Was meant for rich2005, the busiest man in gimp world. ![]() |
Author: | rich2005 [ Sat Dec 21, 2019 3:03 pm ] |
Post subject: | Re: Path: reduce the number of nodes while keeping the shape |
@Konstantin Not that busy, what is the hee-hee for Quote: To get a good reduction of nodes, you have to apply Simplify more than once I did not say apply more than once, the example I showed used Simplify Path applied once, of course repeated use will destroy anything and that applies to most things. Quote: http://tavmjong.free.fr/INKSCAPE/MANUAL_v15/html/Paths-Editing.html No need to point me to that, I do know about it. I also know that manual has not changed since Inkscape 0.48 (2010) Going back to the example I posted, the simplified path is a good fit to the Image in Gimp. It is always up to the user to keep or reject. I did recommend right at the beginning to get used to tracing a path by hand. |
Author: | racer-x [ Sat Dec 21, 2019 3:42 pm ] |
Post subject: | Re: Path: reduce the number of nodes while keeping the shape |
Yes, tracing by hand is always the best strategy going forward. You can't expect a stupid computer to read your thoughts........... |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |