mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Remove support for PIL plus external encoder
This commit is contained in:
parent
87a14ce6de
commit
24285fdc28
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user