[magick-users] Creating animated gifs - memory shortage

Fred Weinhaus fmw at alink.net
Tue Apr 22 21:59:13 PDT 2008


I use this as part of a script to flicker a set of images or save as 
an animated gif. It adds images sequentially. I got this from a 
script by Anthony Theyssen.

if [ $# -lt 2 ]
	then
	errMsg "--- AT LEAST TWO INPUT IMAGES MUST BE PROVIDED ---"
else
	convert $label "$1" $resize miff:- |\
		montage - -geometry +0+0 -tile 1x1 $tmp0
	shift
	while [ $# -gt 0 ]
		do
		convert $label "$1" $resize miff:- |\
	 		montage - -geometry +0+0 -tile 1x1 miff:- |\
			convert -delay $delay $tmp0 -page +0+0 - 
-page +0+0 $tmp0
		shift
	done
	if [ "$save" = "yes" ]
		then
		convert $tmp0 -loop 0 animation.gif
	fi
		animate $tmp0
fi


You can see my full script, flicker, at

http://www.fmwconepts.com/imagemagick/index.html

or you can get Anthony's script at

http://www.imagemagick.org/Usage/scripts/flicker_cmp




>Currently I'm trying to create some animated GIF with quite a big 
>set of GIFs, but I'm
>running out of memory. So I hope that you guys know some trick to 
>subsequently add a
>frame/GIF to an existing animGIF in a loop?


More information about the Magick-users mailing list