~edwin-grubbs/python-imaging/trunk

« back to all changes in this revision

Viewing changes to Scripts/gifmaker.py

  • Committer: effbot
  • Date: 2006-03-01 19:11:48 UTC
  • Revision ID: svn-v4:be285980-f00d-0410-a9fe-d4747b46ecd0:pil:18
Load Imaging-1.1.3 into pil.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
# The Python Imaging Library
3
 
# $Id$
 
3
# $Id: //modules/pil/Scripts/gifmaker.py#2 $
4
4
#
5
5
# convert sequence format to GIF animation
6
6
#
22
22
#
23
23
#       import Image
24
24
#       import gifmaker
25
 
#       
 
25
#
26
26
#       sequence = []
27
 
#       
 
27
#
28
28
#       # generate sequence
29
29
#       for i in range(100):
30
30
#           im = <generate image i>
34
34
#       fp = open("out.gif", "wb")
35
35
#       gifmaker.makedelta(fp, sequence)
36
36
#       fp.close()
37
 
 
37
#
38
38
# Alternatively, use an iterator to generate the sequence, and
39
39
# write data directly to a socket.  Or something...
40
40
#