Pillow/Scripts/gifmaker.py

32 lines
644 B
Python
Raw Normal View History

#!/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.
#
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:
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)