List Info

Thread: Creating gif-sequences




Creating gif-sequences
user name
2006-06-19 11:58:21
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-SIGpython.org
>htt
p://mail.python.org/mailman/listinfo/image-sig
>  
>

_______________________________________________
Image-SIG maillist  -  Image-SIGpython.org
htt
p://mail.python.org/mailman/listinfo/image-sig
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )