![]() |
pl_stroke_arrows, a GIMP 3.0 python plugin to draw simple arrows - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: pl_stroke_arrows, a GIMP 3.0 python plugin to draw simple arrows (/Thread-pl-stroke-arrows-a-GIMP-3-0-python-plugin-to-draw-simple-arrows) Pages:
1
2
|
RE: pl_stroke_arrows, a GIMP 3.0 python plugin to draw simple arrows - denzjos - 08-13-2025 A good idea would be to implement the option to add labels to the arrows. In Gimp 2.10, a plugin from Tin Tran offered this option. It would be great to have this option in gimp 3. [attachment=13795] [attachment=13796] RE: pl_stroke_arrows, a GIMP 3.0 python plugin to draw simple arrows - Scallact - 08-13-2025 (08-13-2025, 05:03 PM)denzjos Wrote: A good idea would be to implement the option to add labels to the arrows. In Gimp 2.10, a plugin from Tin Tran offered this option. It would be great to have this option in gimp 3. Oh, that's a very neat feature! I'm torn, because I want to keep the plugin as simple as possible, we don't want generally to go through a myriad of options when drawing a basic arrow. The feature requires at bare minimum 3 new fields in the UI (a checkbox, a font style and a font (or circle) size). I have some ideas for decorating the arrows' tail, maybe that could be integrated in a drop-down list, without too much clutter. I'll note down the idea and see in the future if that can be done. Thanks! RE: pl_stroke_arrows, a GIMP 3.0 python plugin to draw simple arrows - teapot - 08-15-2025 (08-13-2025, 03:05 PM)Scallact Wrote:(08-13-2025, 01:46 PM)teapot Wrote: Hi Scallact, Thank you for the plugin, it's working nicely here and I gave it some tricky paths to test. Well done for tackling splitting the path, it looks a tough call. I especially like that you have a keep-paths option. One small observation, perhaps a message would be nice when the path cannot be handled as I was sometimes getting a new empty layer in the really tough cases. It was when the end two anchors were too lose together. In the screen shots: The first worked. I moved the end anchor closer and got the empty layer. Plugin settings were the same both times. Again thank you for the plugin it is certainly useful and polished. [attachment=13804] RE: pl_stroke_arrows, a GIMP 3.0 python plugin to draw simple arrows - Scallact - 08-15-2025 (08-15-2025, 04:10 AM)teapot Wrote: It was when the end two anchors were too lose together. In the screen shots: The first worked. I moved the end anchor closer and got the empty layer. Plugin settings were the same both times. OK I see, thanks for the visual feedback! I know exactly what happened here: I wrote a basic test to detect if the arrowhead is longer than the last segment (two last points), and then search for the arrowhead anchor on the second to last segment. Here it fails because the second to last segment is also inside the arrowhead. Somehow I knew I should make my search iterative, but was a bit lazy here. :-) I'll note it down on my todo list. Congrats for pointing out the failure case I thought would be rare enough not to be noticed! ![]() Quote:Again thank you for the plugin it is certainly useful and polished. You're welcome! The plugins I used with GIMP 2.10 are not converted yet, so I thought, why not write my own? A single afternoon job, right? Hmm, well... ![]() |