Skip to content

Instantly share code, notes, and snippets.

@abenrob
Last active January 2, 2020 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abenrob/70d7f0e5bfc26fb7544c2498e43cb1fa to your computer and use it in GitHub Desktop.
Save abenrob/70d7f0e5bfc26fb7544c2498e43cb1fa to your computer and use it in GitHub Desktop.

Get infoabout image

  identify image.png 

resize image

  convert image.png -resize 50x50% new_image.png

images to gif

convert $( ls img_* ) output.gif

images to gif, fade between

convert s1.png s2.png s3.png s1.png -loop 0 -morph 9 -set delay "%[fx:(t%10!=0 || t==n-1)?10:240]" mg.gif

gif to mp4

ffmpeg -f gif -i input.gif output.mp4

compress gif

gifsicle -O3 in.gif -o out.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment