Skip to content

Instantly share code, notes, and snippets.

@EthanRosenthal
Created April 9, 2018 19:57
Show Gist options
  • Save EthanRosenthal/4cf7560ccd333e3f0459f23aee2c7c31 to your computer and use it in GitHub Desktop.
Save EthanRosenthal/4cf7560ccd333e3f0459f23aee2c7c31 to your computer and use it in GitHub Desktop.
Turn series of images into a gif
# Run like
# gifify image_names_* awesome_movie.gif
# where you glob the list of images as the first argument
# then the last argument is the name of the output gif
alias gifify='python -c "import imageio;import sys;ims=[]; *in_, out=sys.argv[1:];[ims.append(imageio.imread(i)) for i in sorted(in_)];imageio.mimsave(out,ims)"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment