Advertisement
Guest User

Untitled

a guest
Aug 27th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #!/bin/bash
  2. #Script to use ImageMagick to batch convert images to gif
  3. #set command line parameters
  4. species=$1
  5. alpha=$2
  6. loop_length=$3
  7. tpulse=$4
  8. num_img=$5
  9. f_ext=$6
  10. #set convert parameters
  11. REPEAT=0 #set to zero for infinitely repeating loop
  12. DELTA=40 #amount of separation between frames in a hundredth of a second
  13. #set first part of string
  14. s1="ebtel2fl_L${loop_length}_tpulse${tpulse}_alpha${alpha}_${species}_heating_"
  15. s2="_dem.eps"
  16. #Run ImageMagick convert
  17. convert -delay $DELTA $(for i in `seq 0 $((num_img - 1))`; do echo $f_ext$s1$i$s2; done) -loop $REPEAT $f_ext$s1".gif"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement