From cb4f0f2b3c57a76551c7dfdae6a67f4b58da4681 Mon Sep 17 00:00:00 2001 From: Alex Clark Date: Wed, 6 Feb 2013 09:25:03 -0500 Subject: [PATCH] Revert "Fix saving images with added transparency" This reverts commit cc439099c1e8c81a929ea446caa6791d7d9b6bd6. --- PIL/GifImagePlugin.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/PIL/GifImagePlugin.py b/PIL/GifImagePlugin.py index 203689320..443d4db12 100644 --- a/PIL/GifImagePlugin.py +++ b/PIL/GifImagePlugin.py @@ -364,11 +364,6 @@ def getheader(im, palette=None, info=None): for i in range(maxcolor): s.append(o8(i) * 3) - if im.info.has_key('transparency'): - transparentIndex = im.info['transparency'] - s.append('!' + o8(0xf9) + o8(4) + o8(1) + o8(0) + o8(0) + - o8(transparentIndex) + o8(0)) - return s def getdata(im, offset = (0, 0), **params):