Skip to content

Instantly share code, notes, and snippets.

@umpirsky
Created June 25, 2014 10:02
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 umpirsky/0ffd04e792586e34a0d1 to your computer and use it in GitHub Desktop.
Save umpirsky/0ffd04e792586e34a0d1 to your computer and use it in GitHub Desktop.
Convert all jpg images from folder into animated gif.
#!/bin/sh
mogrify -verbose -resample 72x72 -resize 512x512 *.jpg
exiftran -a -no -i *.jpg
convert -verbose -delay 15 -loop 0 *.jpg fun.gif
@Nek-
Copy link

Nek- commented Jun 25, 2014

Would be better starting by theses line, isn't it ?

read -p "This script will resize all images in this folder, you will lose all of them, are you sure to continue ? (y/n) " choice
case "$choice" in 
  y|Y ) echo "Creation of your gif =)";;
  * ) echo "Exiting the script, be careful :) ."; exit 1;;
esac

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