Page 1 of 1

Posted: 2006-11-08T19:10:54-07:00
by anthony
You can try adding a -delete -25, which deleted the 25th frame from the end of the current image sequence. This will do nothing when less than 25 frames are present, but should delete the first frame when the 25th frame is added, leaving 24 frames.

You can also use -delete 0--25 to delete all but the last 24 frames in a image sequence, however will always delete the first frame if less than 25 frames are present. :-(

You can solve that by always inserting a 'fake' first frame using. As such to remove all but the last 24 images regardless of how many images are present (even too few) use...

Code: Select all

  convert   ...    null: +insert -delete 0--25    last_24_frames.gif
I have updated IM Examples, basics image sequence operators, delete with this info,
http://www.cit.gu.edu.au/~anthony/graph ... cs/#delete

NOTE: The resulting animation may not be the best. I would recommend you save the
image sequence as a MIFF image file, then do some GIF optimization to convert that
into the GIF animation for actual usage. Remember GIF has a limits color table so saving images directly into that format will cause an automatic color quantization (reduction).

The latest IM set (late 6.2 versions just before 6.3.0) had an overhaul of the color quantization options during the documentation process in IM Examples
http://www.cit.gu.edu.au/~anthony/graph ... /quantize/

I hope to re-write the color optimization parts of the animation basics area with these results soon.