-1

I have a series of images numbered from 0 to 1200. I want to create animated image ( gif ). I do not want to use all images [0,1200] so I have removed some images : [11,14], [16,19]. Now series has a "holes" but I still want to show them in ascending order ( from smallest= 0 to highest = 1200). If I use :

  convert -resize 800x600 -delay 50  -loop 0 %d.gif[0-1200] a.gif

then order is not good. How should I do it ?

Help is appreciated

Adam
  • 1,254
  • 12
  • 25

1 Answers1

1

The unix command sort is your friend for this.

convert `ls *.gif | sort -n` -resize 800x600 -delay 50  -loop 0 a.gif

I do not want to use all images

That's very unique to you, and should be clarified with a Minimal, Complete, and Verifiable example

Community
  • 1
  • 1
emcconville
  • 23,800
  • 4
  • 50
  • 66
  • This is it. Thx. I have edited my question and added a link to page where is an image ( manually build) and code. – Adam Feb 02 '15 at 20:30