[Image-SIG] Creating gif-sequences

Maik Trömel maik.troemel at maitro.net
Mon Jun 19 13:58:21 CEST 2006


Thanks for support.

I did it this way:

sequence = []

for s in range(steps):

            im = scipy.misc.toimage(arr, cmin=0, cmax=255, high = 255, low = 0, pal=colorMap(), mode='P')

            im = im.transpose(Image.FLIP_TOP_BOTTOM)

            sequence.append(im)

fp = open(sys.argv[4], "wb")

gifmaker.makedelta(fp, sequence)

fp.close()


Greetings Maik

Fredrik Lundh wrote:

>Maik Trömel wrote:
>
>  
>
>>I've got a question concerning gif-sequences. In the manuel i've found
>>how to load a gif-sequence. but how can i create one?
>>    
>>
>
>there's an example in the Scripts directory in the PIL source distribution. look
>for a module/script called "gifmaker.py".
>
></F> 
>
>
>
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Image-SIG maillist  -  Image-SIG at python.org
>http://mail.python.org/mailman/listinfo/image-sig
>  
>



More information about the Image-SIG mailing list