Created
February 9, 2015 20:23
-
-
Save Zulko/25ea4d949aea5dbf8925 to your computer and use it in GitHub Desktop.
Eugene saying hey!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Result: http://i.imgur.com/thrh1TU.gif | |
from moviepy.editor import * | |
# We start with a looping gif, and we will add some text | |
clip = VideoFileClip("eugene.gif").speedx(0.7) # slow down a little | |
txt = (TextClip("Hey", fontsize=78, font='Impact-Normal', | |
color='yellow', stroke_color='black', | |
stroke_width=3, kerning=1.5) | |
.resize(width=60) | |
.set_pos((20,30))) | |
final = CompositeVideoClip([clip,txt]).set_duration(clip.duration) | |
final.write_gif('hey_txt.gif') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Direct link to the GIF