Merge pull request #2 from hugovk/master

Tweak for #664
This commit is contained in:
Hugo 2014-05-20 11:32:05 +03:00
commit 5c24952ee8

View File

@ -802,7 +802,7 @@ class Image:
# after quantization.
trns_im = trns_im.convert('RGB')
trns = trns_im.getpixel((0,0))
elif self.mode == 'P' and mode == 'RGBA' and 'transparency' in self.info:
elif self.mode == 'P' and mode == 'RGBA':
delete_trns = True
if mode == "P" and palette == ADAPTIVE: