It is currently Sun Aug 09, 2026 7:33 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 16 posts ] 
Author Message
 Post subject: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Sat Mar 22, 2025 3:37 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Aug 08, 2016
Posts: 2855
Location: East Midlands of England
PreGiffer can be used to make gif animation files for custom fonts in Gimp 2.10; it takes a lot of the drudgery out of the process.

A pdf version of the guide:

Attachment:
PreGiffer-Help.pdf [1.57 MiB]
Downloaded 77 times


Download and install the two plug-ins to your user plug-ins folder in Gimp 2.10 before playing.

Attachment:
Plug-ins.zip [28.71 KiB]
Downloaded 87 times


Use Custom Font Trailing version 0.3b to create an image with at least one custom font layer together with a background layer; then use PreGiffer to set the frame timings before applying one of the animation styles.

Open Gimp and create a new image (I used an image with a size of 900x600 px).

Colour your background layer in any way you wish if you do not want to use the background tools available with the Custom Font Trailing filter (I used a plain black fill).

Use the Gimp path tool to add a path to the image.

Image

Call up the Filter dialog:

Filters>>Custom Fonts>>Using Tools>>Custom Font Trailing 0.3b…

On Tab 1 click on the folder icon and navigate to and select the custom font that you want to use.

Image

Click in the text box and, for now, add just one word.

Then Click on the 3rd dialog tab:

Image

Change the ‘Merge layer option’ to ‘Merge all character layers’ and then click on ‘OK’ to let the filter do its work and stroke the text along the path.

Image

The image now has two layers:

Image

Time to look at the PreGiffer dialog:

Open the PreGiffer plug-in from:

Filters>>Custom Fonts>>Utility Tools>>Custom Font PreGiffer v0.1…

To see the animation styles, click on the style option drop-down menu:

Image

Some options relate only to certain animation styles but the ‘Frame length’ options apply to all styles.

Use the default style and settings with your image in Gimp and click on ‘OK’.

PreGiffer will create a new image and generate the layers or frames (58 in my case) required to make it appear that the word ‘Gimp’ drops down from above into it’s original position.

The first frame layer thumbnail:

Image

A mid-range frame layer thumbnail shows part of the apparently falling word:

Image

And the final frame layer thumbnail – the word back in its position:

Image

If you want to see how the gif looks like in action, use the Playback filter:

Filters>>Animation>>Playback…

Image

Discard this image (you could save it if you really wanted) so that we can look at the next style, ‘From above bump’. Return to the original image and call up the PreGiffer filter dialog again. This time click on the ‘From above bump’ item from the ‘Animation style’ drop-down menu option. Use the default options again and click on ‘OK’.

The filter will send a message to the error console in Gimp, but will still create the new image.

Image

This new image will contain more frames than the last one – 62 in my case. If you use the Animation Playback plug-in to view the gif animation you will see that the reason for the increase was to simulate a bump effect as the word returned to its original position on the screen.

Image

The error message merely indicates that PreGiffer had tested to see if the last image it created was still available for use but could not be found. If it had been available, PreGiffer would have added the new frames to that image instead in order to build up a chain of animation styles.

End of Sequence Frames

When there are more than two layers in the base image in PreGiffer you can make use of the ‘End of sequence frame length’ timings in the filter dialog.

Create a new image with your custom font tools using the word ‘Gimp’ and with each letter on a separate layer and with a background layer. The image below therefore is made up of five layers.

Image

Open the PreGiffer dialog and select the ‘In from right’ item from the ‘Animation style’ option drop-down menu and click on ‘OK’.

Let PreGiffer generate the frames/layers in a new image (my new image contained 35 layers). Use the ‘Animation Playback’ filter to play the animation; you will see that now each letter slides in from the right to its original position in the word and that there is a short delay before the next letter slides into place. The length of this delay is set by the ‘End of sequence frame length’ option setting in the dialog.

Image

Image

The default setting is for 500ms but this can be changed in the dialog to suit your needs.


The distance value option affects the amount of movement applied to this style of animation (i.e. ‘from left’, ‘from right’, ‘from above’ and ‘from below’ – with or without ‘bump’).

The ‘Spin around’ animation style makes use of the ‘Angle of rotation step size’ option which obviously affects the number of layers created in the new image. Smaller steps make for a smoother animation sequence but you may wish to lower the ‘Frame length’ to then speed up the rate of playback.

Two examples; the first has all character layers merged.

Image

Image

Part 2:

The remaining two style options may offer a more flexible approach to animating custom fonts.
The basic difference between the two styles is that ‘One frame at a time’ uses a copy of each layer in the original image – whereas the ‘Overlay’ style adds the contents of each layer to the previous layer.

Image

Using One frame at a time for Expanding text:

To achieve this effect use Custom Font Trailing to create the base image. Tab 6 of the dialog has some PreGiffer specific options:

Add a new image to Gimp (900 x 600 for me) with a coloured background.

Add a path to the image with path tool (background not visible in the image below):

Image

Open the Custom Font Trailing filter:

Filters>>Custom Fonts>>Using Tools>>Custom Font Trailing 0.3b…

On the first tab, choose a custom font and set the ‘Character spacing amount’ to -30.

Image

And on the second tab, set the ‘Merge layer options’ to ‘Merge all character layers’:

Image

On the 6th tab choose the ‘Expanding text’ item from the drop-down menu for PreGiffer options and set the ‘Number of Custom Font layers required (10 in my case).

Image

Click on ‘OK’.

My output shows all the separate custom font layers stacked on top of each other:

Image

Now open the PreGiffer dialog, set the ‘Animation style’ to ‘One frame at a time’ and the ‘Add a final background layer’ to ‘No’. Click on ‘OK’.

Test out the animation generated to the new image with the Playback plug-in.

Image


Have fun

_________________
Image
"Let no one steal your dreams."
Paul Cookson

Custom Font Links
2.10 Tools
Character Paths
White Bases


Last edited by Skinnyhouse on Sat Mar 22, 2025 11:24 am, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Sat Mar 22, 2025 11:23 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Aug 08, 2016
Posts: 2855
Location: East Midlands of England
Part 3: Using One frame at a time for Text Tremor:

Add a tremor or trembling effect to your custom font text or to a part of the text.

Create a new image and add a background colour.

The image below shows how the text will look without any effect added:

Image

The aim is to add a tremor to the larger word ‘GIMP’.

Add a path for the lower line of text – this is to be the part which will not have a tremor.

Open custom Font Trailing (reset any of the Pregiffer options if you have just been using them); on the first tab of the dialog select a custom font and enter the text for the lower line – in my case ‘IS FUN.’ On the third tab of the dialog set the ‘Merge layer options’ to ‘Merge all character layers’.

Hit ‘OK’ and then merge the text layer down onto the background layer:

Image

Add another path to the image to hold the word ‘GIMP’. Open the Custom Font Trailing filter again and enter the text. Hit ‘OK’ to create the new layer.

Image

Re-open the filter and on the second tab enter a value of 8 for the ‘Angle jitter range’ (higher values produce a more marked shaking effect rather than the slight tremor that I am after).

Image

On the 6th tab (PreGiffer Options) select the ‘Text tremor’ item from the ‘PreGiffer options’ drop-down menu and enter a value for the ‘Number of Custom Font layers required’.

Image

Click on ‘OK’ to add the layers to the image.

Although it is hard to see, the screen snap below contains all eleven layers containing the word ‘GIMP’

Image

Although not essential, I would duplicate the layer without any text jitter (the one just above the bottom background layer) and put this copy at the top of the layer stack.

Now open Custom Font PreGiffer and set the options as shown below:

Image

Click on ‘OK’.

Examine the frame layers generated by PreGiffer and delete the bottom layer (this removes a slight stutter from the gif). Now use the ‘Playback’ filter to see the effect of the animation.


Part 4: An example of using ‘Overlay style’ to create an animated message

Create a new image and add a background (I added some text that I wanted to be in every frame of my background).

Image

Then I added a number of words (layers) adding different paths with different custom fonts using Custom font Trailing. For example:-

Image

When done with the word layers, open PreGiffer. Set the ‘Animation style’ to ‘Overlay frames’ and adjust the frame times to suit your needs; Too short and the viewer will not have time to read any of the words.

Image

Click on ‘OK’ to generate the new image for playback.

Image

Chaining animation Styles

PreGiffer does it’s best to remember which image is being used as the image which is being used for animation purposes. As said earlier, this can be used to chain styles together to make a longer animation.

For example, you may create a set of layers containing the letters of the word ‘GIMP’ and a background layer. You could then use PreGiffer to make the letters...
‘Fade in’
‘Spin around’
‘Fade out’.

Once a new image has been added by PreGiffer it will continue to use this new image as the target for adding animation frames – until you remove that particular image. You can create another image to build up layers for PreGiffer to use and PreGiffer will still send the frames to the target image if that has not been removed.

Reverse option

This option provides a small amount of variety by reversing the order of the layers in the original image (apart from the bottom/background layer). Remember to turn it off unless you want to continue using the reversed order.

A simple chain could be used with the expanding text idea. Make your expanding text layers with Custom Font trailing as described earlier.

Open Pregiffer and set the ‘Animation style’ to ‘One frame at a time’ and the ‘Add a final background layer’ to ‘No’. Click on ‘OK’ to generate the frames in your new image. Re-open PreGiffer, set the ‘Reverse frames’ to ‘Yes’ and click on ‘OK’. Examine the frames in the new image and remove any from the middle of the output that contain just the background image.

Image

Playback and Optimization options

Image

I have added these options for the sake of completeness: Be aware that when you choose to show the playback window the PreGiffer dialog will remain on screen until you close the playback window.

_________________
Image
"Let no one steal your dreams."
Paul Cookson

Custom Font Links
2.10 Tools
Character Paths
White Bases


Top
 Post subject: Re: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Sat Mar 22, 2025 7:24 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16153
Pretty cool Skinnyhouse! Thanks! :)

_________________
Image


Top
 Post subject: Re: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Sun Mar 23, 2025 3:16 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 14115
Location: Spain, Aragón
Thanks Skinnyhouse for such a brilliant plugin with so many options to play with. I really like the many attractive text options. :clap


Attachments:
PreGiffer-Skinnyhouse-test-1.gif
PreGiffer-Skinnyhouse-test-1.gif [ 1.21 MiB | Viewed 15151 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Sun Mar 23, 2025 4:01 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Aug 08, 2016
Posts: 2855
Location: East Midlands of England
Thanks Rod & Issabella:

I forgot to mention that PreGiffer works with any layers not just custom font layers...

Image


Image

_________________
Image
"Let no one steal your dreams."
Paul Cookson

Custom Font Links
2.10 Tools
Character Paths
White Bases


Top
 Post subject: Re: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Mon Mar 24, 2025 3:42 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 14115
Location: Spain, Aragón
Thank you, Skinnyhouse
for your immense work and the time you've invested in it. We're going to enjoy it a lot. :clap


Attachments:
PreGiffer-Skinnyhouse-test-3.gif
PreGiffer-Skinnyhouse-test-3.gif [ 1.37 MiB | Viewed 15059 times ]
PreGiffer-Skinnyhouse-test-4.gif
PreGiffer-Skinnyhouse-test-4.gif [ 499.02 KiB | Viewed 15059 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Mon Mar 24, 2025 3:43 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 14115
Location: Spain, Aragón
:)


Attachments:
PreGiffer-Skinnyhouse-test-5.gif
PreGiffer-Skinnyhouse-test-5.gif [ 3.75 MiB | Viewed 15059 times ]
PreGiffer-Skinnyhouse-test-6.gif
PreGiffer-Skinnyhouse-test-6.gif [ 534.65 KiB | Viewed 15059 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Mon Mar 24, 2025 3:47 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Aug 08, 2016
Posts: 2855
Location: East Midlands of England
:tyspin
I thought you might have some fun with this Issa.
Great job!

_________________
Image
"Let no one steal your dreams."
Paul Cookson

Custom Font Links
2.10 Tools
Character Paths
White Bases


Top
 Post subject: Re: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Mon Mar 24, 2025 5:32 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 14115
Location: Spain, Aragón
Thanks you so much, Skinnyhouse.
(only there is one option I don't get to manage) reverse option :( But I will get it) :)


Attachments:
PreGiffer-Skinnyhouse-test-7.gif
PreGiffer-Skinnyhouse-test-7.gif [ 1.22 MiB | Viewed 15045 times ]
PreGiffer-Skinnyhouse-test-8.gif
PreGiffer-Skinnyhouse-test-8.gif [ 385.98 KiB | Viewed 15045 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Mon Mar 24, 2025 3:42 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 14115
Location: Spain, Aragón
I got the reverse option. :hi5


Attachments:
PreGiffer-Skinnyhouse-test-9-reverse.gif
PreGiffer-Skinnyhouse-test-9-reverse.gif [ 762.96 KiB | Viewed 14973 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Mon Mar 24, 2025 7:36 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2018
Posts: 736
Thanks Skinnyhouse :bigthup

Gave it a try:
Attachment:
anim-g.gif
anim-g.gif [ 1.98 MiB | Viewed 14953 times ]

Freeze/thaw of the layers in the new image would make the plugin run faster.


Top
 Post subject: Re: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Mon Mar 24, 2025 8:29 pm  (#12) 
Offline
Global Moderator
User avatar

Joined: Oct 02, 2014
Posts: 5013
Location: Sydney Australia
Skinnyhouse - Good work providing the tool.

Teapot and Issabella - good work using it.

_________________
Image

Respect should be offered freely but hard earned


Top
 Post subject: Re: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Tue Mar 25, 2025 2:40 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 14115
Location: Spain, Aragón
teapot, how nice your outcome adding the different options. It is great.
OMG, thank you so much. I'm more than happy you look at the outcomes in the thread, it means much for me. :hi5

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.


Top
 Post subject: Re: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Tue Mar 25, 2025 5:54 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Aug 08, 2016
Posts: 2855
Location: East Midlands of England
Teapot:

I was hoping that no-one would actually look at the code.... :oops:

I am currently re-writing to cut out a lot of unnecessary repetition and will implement freeze/thaw in the next version.

Nice gifs Teapot & Issabella.

_________________
Image
"Let no one steal your dreams."
Paul Cookson

Custom Font Links
2.10 Tools
Character Paths
White Bases


Top
 Post subject: Re: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Fri Mar 28, 2025 2:03 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Aug 08, 2016
Posts: 2855
Location: East Midlands of England
Version 0.2 preview showing new options:

Image

On my machine the example below took about 32 seconds to create with PreGiffer and about 18 seconds with the 'Freeze Layers' option.

Image

Example using the Random option...

Image

_________________
Image
"Let no one steal your dreams."
Paul Cookson

Custom Font Links
2.10 Tools
Character Paths
White Bases


Top
 Post subject: Re: Custom Font PreGiffer v0.1 for Gimp 2.10
PostPosted: Sat Mar 29, 2025 2:26 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 14115
Location: Spain, Aragón
Looking forward to your new release, Skinnyhouse. :) :clap

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.


Top
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group