| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 5,032
» Latest member: wklaus
» Forum threads: 7,753
» Forum posts: 42,132
Full Statistics
|
| Latest Threads |
configure and use midi co...
Forum: General questions
Last Post: cb_in_lfk
41 minutes ago
» Replies: 4
» Views: 192
|
Too many fonts - where ar...
Forum: General questions
Last Post: marty39
Yesterday, 10:47 PM
» Replies: 9
» Views: 576
|
File is set to grayscale,...
Forum: General questions
Last Post: Ofnuts
Yesterday, 09:48 PM
» Replies: 1
» Views: 94
|
Cannot find GIMP folders ...
Forum: Windows
Last Post: NuV01aR!
Yesterday, 12:01 PM
» Replies: 2
» Views: 180
|
Cropping Image
Forum: General questions
Last Post: rinaldop
12-28-2025, 12:02 PM
» Replies: 13
» Views: 755
|
View several new image ic...
Forum: General questions
Last Post: Veset
12-27-2025, 02:23 PM
» Replies: 3
» Views: 250
|
an iOS app that assists p...
Forum: Other graphics software
Last Post: zzh
12-26-2025, 01:10 PM
» Replies: 5
» Views: 661
|
Alivecolors
Forum: Other graphics software
Last Post: denzjos
12-25-2025, 08:27 AM
» Replies: 0
» Views: 154
|
gimp 3 and 8bf files
Forum: Extending the GIMP
Last Post: denzjos
12-24-2025, 02:03 PM
» Replies: 0
» Views: 219
|
Preferences/Folders shows...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: programmer_ceds
12-24-2025, 10:08 AM
» Replies: 5
» Views: 3,178
|
|
|
| Simplifying a path |
|
Posted by: Ottia Tuota - 05-16-2021, 09:20 AM - Forum: Extending the GIMP
- Replies (40)
|
 |
A new plugin. My try on simplifying paths. If Gimp already has a tool for that job, I hope somebody tells me.
The problem is hard, and all I can say is that mostly the plugin works all right though sometimes its decisions seem strange. Anyway, this is the first published version, and we can think the plugin to be still just experimental, so there is room for improvements. To get the plugin, go to
http://kmarkku.arkku.net/Path_modify_fil...aster.html
scroll to the bottom, and click the download button. You get a zip file. Unzip it and place the one file it contains (simplify_path.py) in your user's plug-ins folder. Then (re)start Gimp. To use the plugin: in the Paths tab, right-click the path you want to simplify and follow the links Tools > Modify path > Simplify.
The plugin takes a path and tries to diminish the number of anchors, doing some smoothing but hopefully not too much. An example: On the left you see a path and on the right its anchors:
With default input values the plugin did the following: Below, on the left you see the original path (blue) and the simplified version (red) on top of each other. It may be difficult to see from that picture but there are small differences: many small bends were smoothed out. On the right you see the anchors of the simplified path.
The GUI looks as follows:
I hope the meanings of the inputs are clear enough.
Of the inputs the last one (about selection) may be the most important in practice. It enables the user to restrict the effect to some subset of the anchors. I shall give examples in another post.
The plugin is based on a neat mathematical idea (I think), but unfortunately, when one starts to implement a neat idea, it usually happens that soon one is in the middle of a mess. The plugin is full of my own ad hoc solutions to various problems. Please report if you find it doing something too odd.
|
|
|
|