Created
April 9, 2018 19:57
-
-
Save EthanRosenthal/4cf7560ccd333e3f0459f23aee2c7c31 to your computer and use it in GitHub Desktop.
Turn series of images into a gif
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
# 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