2013-04-21 10:38:36 +04:00
|
|
|
#!/usr/bin/env python
|
2010-07-31 06:52:47 +04:00
|
|
|
#
|
|
|
|
# The Python Imaging Library
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
# convert sequence format to GIF animation
|
|
|
|
#
|
|
|
|
# history:
|
|
|
|
# 97-01-03 fl created
|
|
|
|
#
|
|
|
|
# Copyright (c) Secret Labs AB 1997. All rights reserved.
|
|
|
|
# Copyright (c) Fredrik Lundh 1997.
|
|
|
|
#
|
|
|
|
# See the README file for information on usage and redistribution.
|
|
|
|
#
|
|
|
|
|
2012-10-16 06:27:35 +04:00
|
|
|
from __future__ import print_function
|
|
|
|
|
2015-06-30 11:02:48 +03:00
|
|
|
from PIL import Image
|
2010-07-31 06:52:47 +04:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
if len(sys.argv) < 3:
|
2012-10-16 06:27:35 +04:00
|
|
|
print("GIFMAKER -- create GIF animations")
|
|
|
|
print("Usage: gifmaker infile outfile")
|
2010-07-31 06:52:47 +04:00
|
|
|
sys.exit(1)
|
|
|
|
|
2015-06-30 11:02:48 +03:00
|
|
|
im = Image.open(sys.argv[1])
|
|
|
|
im.save(sys.argv[2], save_all=True)
|