From 24285fdc289d7c298a5803974a1fdb69be36f7f9 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Thu, 23 Feb 2017 03:25:05 -0800 Subject: [PATCH] Remove support for PIL plus external encoder --- PIL/GifImagePlugin.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/PIL/GifImagePlugin.py b/PIL/GifImagePlugin.py index 252740909..e00c22b8f 100644 --- a/PIL/GifImagePlugin.py +++ b/PIL/GifImagePlugin.py @@ -286,11 +286,6 @@ class GifImageFile(ImageFile.ImageFile): # -------------------------------------------------------------------- # Write GIF files -try: - import _imaging_gif -except ImportError: - _imaging_gif = None - RAWMODE = { "1": "L", "L": "L", @@ -391,13 +386,6 @@ def _save_all(im, fp, filename): def _save(im, fp, filename, save_all=False): 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 try: