Remove support for PIL plus external encoder

This commit is contained in:
wiredfool 2017-02-23 03:25:05 -08:00 committed by Andrew Murray
parent 87a14ce6de
commit 24285fdc28

View File

@ -286,11 +286,6 @@ class GifImageFile(ImageFile.ImageFile):
# -------------------------------------------------------------------- # --------------------------------------------------------------------
# Write GIF files # Write GIF files
try:
import _imaging_gif
except ImportError:
_imaging_gif = None
RAWMODE = { RAWMODE = {
"1": "L", "1": "L",
"L": "L", "L": "L",
@ -391,13 +386,6 @@ def _save_all(im, fp, filename):
def _save(im, fp, filename, save_all=False): def _save(im, fp, filename, save_all=False):
im.encoderinfo.update(im.info) im.encoderinfo.update(im.info)
if _imaging_gif:
# call external driver
try:
_imaging_gif.save(im, fp, filename)
return
except IOError:
pass # write uncompressed file
# header # header
try: try: