Skip to content

Instantly share code, notes, and snippets.

Created Jun 25, 2014
What would you like to do?
Convert all jpg images from folder into animated gif.
mogrify -verbose -resample 72x72 -resize 512x512 *.jpg
exiftran -a -no -i *.jpg
convert -verbose -delay 15 -loop 0 *.jpg fun.gif
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;;

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