It is currently Mon Dec 11, 2017 10:01 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 65 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
 Post subject: Re: Warped text
PostPosted: Tue Jul 06, 2010 6:11 pm  (#31) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2210
Location: Retired Moderator Slowly Returning to the Living.
Experimental image for a website I moderate.

Image

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: Warped text
PostPosted: Tue Jul 06, 2010 6:37 pm  (#32) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14144
kewl.......... :coolthup

_________________
Image


Top
 Post subject: Re: Warped text
PostPosted: Tue Jul 06, 2010 9:50 pm  (#33) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5267
Location: Northwest Ohio
very psychedelic looking! Wish it would work for me. I just might have to upgrade my gimp one of these days!


Top
 Post subject: Re: Warped text
PostPosted: Wed Jul 07, 2010 7:06 am  (#34) 
Offline
GimpChat Member

Joined: May 16, 2010
Posts: 13984
Location: USA
2-ton wrote:
very psychedelic looking! Wish it would work for me. I just might have to upgrade my gimp one of these days!


lol
very nice Photomaster!

Saulgoode is there a way to write a script for us Python users?
Would that make it faster on rendering?


Top
 Post subject: Re: Warped text
PostPosted: Wed Jul 07, 2010 10:54 am  (#35) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
2-ton wrote:
very psychedelic looking! Wish it would work for me. I just might have to upgrade my gimp one of these days!

As near as I can tell, there are two things preventing the script from running on GIMP 2.4. First, there is no PDB function to copy a path. This is easily rectified if you add the following block of code to the beginning of the script:
(unless (symbol-bound? 'gimp-vectors-copy)
  (define (gimp-vectors-copy orig-path)
    (let* ((image (car (gimp-vectors-get-image orig-path)))
           (path (car (gimp-vectors-new image
                         (car (gimp-vectors-get-name orig-path)))))
     (strokes (vector->list (cadr (gimp-vectors-get-strokes orig-path))))
     (stroke-info nil))
      (while (pair? strokes)
        (set! stroke-info (gimp-vectors-stroke-get-points orig-path (car strokes)))
        (gimp-vectors-stroke-new-from-points path
                      (car stroke-info)
                      (cadr stroke-info)
                      (caddr stroke-info)
                      (cadddr stroke-info))
        (set! strokes (cdr strokes)))
      (list path))))


The other problem is that the 2.4 PDB does not provide a function to convert a text layer to a path, and it would not be trivial for me to write such a function (I'm not even sure it can be done in Script-fu). However, if you make the above change to the script, you should be able to use the script as long as you manually convert your text layer to a path, activate your envelope path, and then run the script using the "alternate path" option (and setting the alternate path to the saved text path).

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Warped text
PostPosted: Wed Jul 07, 2010 11:23 am  (#36) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Rod wrote:
Saulgoode is there a way to write a script for us Python users?

I usually leave Python out of my GIMP as I consider it an unfortunate waste of memory. :)

Rod wrote:
Would that make it faster on rendering?

No, I highly suspect it would not. The script spends about 95% of its time finding the distance along two paths (the horizontal and vertical axes) and retrieving/setting path control points using internal GIMP functions. Any Python script (following the same approach) would use those same GIMP functions and not experience any significant speed improvement.

One potential means of improving speed would to cache the horizontal curves as they are generated and search the cache before calculating a new curve. In this way, the horizontal curve for any given Y location in the text would only have to be calculated once. The question is whether a search for and retrieval of data in the cache (performed in an interpreted language) would be any faster than recalculating the horizontal curve (which is performed by GIMP in compiled C). I suspect it would not; though if someone were to convert the program to a compiled plug-in then high-speed cache lookups would probably be worthwhile.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Warped text
PostPosted: Wed Jul 07, 2010 1:04 pm  (#37) 
Offline
GimpChat Member

Joined: May 16, 2010
Posts: 13984
Location: USA
Thanks for that quick answer saulgoode. =)
As usual it was very informative.

Image


Top
 Post subject: Re: Warped text
PostPosted: Wed Jul 07, 2010 9:54 pm  (#38) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5267
Location: Northwest Ohio
Thanks for the possible solution, SG. I will give this a try on my next day off!


Top
 Post subject: Re: Warped text
PostPosted: Thu Jul 08, 2010 2:57 am  (#39) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5872
nice script Saulgoode ( and nice results too O)

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Warped text
PostPosted: Thu Jul 08, 2010 11:14 am  (#40) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
2-ton,

I have made a version of the script for GIMP 2.4. It differs from the original 2.6 script in that the active path is your text path and you must choose the envelope shape path from within the dialog (for the original script, the active path was employed as the shape path and you had to choose an alternate "text" path if you weren't using a text layer). This is so the default setting accommodates the common case that you will have performed the requisite "Text to Path" command just before running the script.

http://flashingtwelve.brickfilms.com/GIMP/Scripts/Temp/warppath-2-4.scm

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
Post new topic Reply to topic  [ 65 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) strangely warped looking text effect

22

No new posts Attachment(s) Possibly a tad bit warped.

10

No new posts Attachment(s) Add Text to a jpg - GIMP 2.8.2 – Text tiny

15

No new posts Attachment(s) I cannot get text to appear in text boxes

7

No new posts Attachment(s) I need help with some Text.....

7



* Login  



Powered by phpBB3 © phpBB Group