Create a text fading effect for an animated gif
Posted: 2009-02-26T11:20:47-07:00
Hi,
you already helped my creating an animated gif in this thread viewtopic.php?f=1&t=12882
Now I have to bother you again
I want to create an animated gif with a simple text fading effect.
Here is my not working approach, maybe you can see what i want to achieve:
For lesser code length I have simplified the fading from grey to black to grey. later i will use the transparency thing (last 2 bits of the hex color)
I am trying to perform the following steps:
- Show "Frame 1" in grey for 100ms
- Show "Frame 1" in black for 2000ms
- Show "Frame 1" in grey for 100ms
- Show banner without text for 1000ms
- Show "Frame 2" in grey for 100ms
- Show "Frame 2" in black for 2000ms
- Show "Frame 2" in grey for 100ms
- Show banner without text for 1000ms
and so on...
My code is not even getting near to that what I want
The delay does not have any effect and the font, fontsize and color is no applied to the first frame.
Any advise?
you already helped my creating an animated gif in this thread viewtopic.php?f=1&t=12882
Now I have to bother you again
I want to create an animated gif with a simple text fading effect.
Here is my not working approach, maybe you can see what i want to achieve:
Code: Select all
convert ( c:/banner.jpg ) ^
( -clone 0 -annotate 0x0+15+20 "Frame 1" -font Arial -fill grey -strokewidth 2 -pointsize 20 -delay 10 ) ^
( -clone 0 -annotate 0x0+15+20 "Frame 1" -font Arial -fill black -strokewidth 2 -pointsize 20 -delay 200 ) ^
( -clone 0 -annotate 0x0+15+20 "Frame 1" -font Arial -fill grey -strokewidth 2 -pointsize 20 -delay 10 ) ^
( -clone 0 -delay 100 ) ^
( -clone 0 -annotate 0x0+15+20 "Frame 2" -font Arial -fill grey -strokewidth 2 -pointsize 20 -delay 10 ) ^
( -clone 0 -annotate 0x0+15+20 "Frame 2" -font Arial -fill black -strokewidth 2 -pointsize 20 -delay 200 ) ^
( -clone 0 -annotate 0x0+15+20 "Frame 2" -font Arial -fill grey -strokewidth 2 -pointsize 20 -delay 10 ) ^
( -clone 0 -delay 100 ) ^
-delete 0 -loop 0 -layers optimize c:/banner_animation.gif
I am trying to perform the following steps:
- Show "Frame 1" in grey for 100ms
- Show "Frame 1" in black for 2000ms
- Show "Frame 1" in grey for 100ms
- Show banner without text for 1000ms
- Show "Frame 2" in grey for 100ms
- Show "Frame 2" in black for 2000ms
- Show "Frame 2" in grey for 100ms
- Show banner without text for 1000ms
and so on...
My code is not even getting near to that what I want
The delay does not have any effect and the font, fontsize and color is no applied to the first frame.
Any advise?