Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pl_stroke_arrows, a GIMP 3.0 python plugin to draw simple arrows
#11
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.

   

.zip   label_arrows_from_path.zip (Size: 5.66 KB / Downloads: 13)
Reply
#12
(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!
Reply
#13
(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.

Thanks for testing it thoroughly, and thanks for the excellent feedback @teapot! I really appreciate!

Your suggestion for better error feedback was already on my mind. There are a few error cases to handle, and also minor enhancements I'd like to write, but I thought it was already useful and polished enough for publication. :-)

I'll make my todo list a bit more specific  about your suggestion.

Enjoy!

P.S: in your try where the arrow was not drawn, do you know if it could be a case where the arrowhead was longer than the path itself?

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.

   
Reply
#14
(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!  Big Grin


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...  Tongue
Reply


Forum Jump: