Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5841599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:54:38+00:00 2026-05-22T11:54:38+00:00

I’m discovering the gimp API for few days now (using python-fu) and I actually

  • 0

I’m discovering the gimp API for few days now (using python-fu) and I actually enjoy it.
However there is something I can’t manage to do : attach a text on a path.

Using the user interface to perform it is quite easy (create a path > create a text > click on text along path in toolbox)… but, as you might expect, I ain’t love when things are easy. That’s why I’m trying to do it using python.

Here is what I already managed to do :

  • create a layer
  • add a path on it
  • create a new text
  • display the whole thing

All I have to do right now is learning how to make my text follow the path.

Help would be warmly appreciated.

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T11:54:38+00:00Added an answer on May 22, 2026 at 11:54 am

    After hours and hours of research on the right side of Internet (the one with no naked people on it) I haven’t found so much about my question. That’s why I decided to look at Gimp source code in order to know how the magical “text along path” actually works… and it seems nothing has been made to make this action available via pdb.

    After that, in order to be sure, I’ve asked on the gimp developers’ mailing list and someone (I don’t know if I’m allowed to tell his name right here) replied me with that :

    The “text along
    path” function is basically a hack, and was never intended to be a
    final product. A proper text-along-path function would allow the path
    to be changed and alter the text accordingly. The way that the warped
    text is rendered is also less than ideal. Because the plan was always
    that the functionality would change, no PDB hook was ever created for
    it.

    Another told me how to create my own “text along path” plugin :

    However, as far as I know, the Bezier strokes in a path have the following property, applying an affine transform to their control points and handles is equivalent to
    applying the same transform to every point of the curve. So you can do something like this:

    • determine a “reference path”, that is, a straight path along the text (or running though the middle of it)
    • for each stroke iterate the control points, and on each point (“C”):
      • determine projection on reference path (distance from origin of reference path) (elt’s call it “R”) and distance to it
      • find the corresponding point on the target path (pdb.gimp_path_get_point_at_dist()), “R'”
      • find the position of the new control point C’: same distance to target path, on perpendicular
      • compute the position of the handles:
        • compute dx/dy between H and C
        • compute equivalent position H’ from the new control point C’
        • apply rotation, centered on C’ with an angle that is the direction of the target path in R’ (as returned by earlier gimp_path_get_point_at_dist()) to produce new handle position (H”)
        • repeat for 2nd handle
        • add the triplet C’, H”1, H”2 to the new stroke

    Then he encouraged me to look at two plugins doing things similar with vectors, named ribbon-path and slinky, and available on http://gimp-path-tools.sourceforge.net/

    I hope (thanks to these two guys) this post will help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.