Skip to content

Instantly share code, notes, and snippets.

@Zulko
Created February 9, 2015 20:23
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zulko/25ea4d949aea5dbf8925 to your computer and use it in GitHub Desktop.
Save Zulko/25ea4d949aea5dbf8925 to your computer and use it in GitHub Desktop.
Eugene saying hey!
# 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')
@Zulko
Copy link
Author

Zulko commented Feb 9, 2015

@intoro
Copy link

intoro commented Feb 19, 2018

awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment