Skip to content

Commit

Permalink
Merge pull request #2 from hugovk/master
Browse files Browse the repository at this point in the history
Tweak for #664
  • Loading branch information
hugovk committed May 20, 2014
2 parents 0938145 + f8c5812 commit 5c24952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ def convert(self, mode=None, matrix=None, dither=None,
# 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:
Expand Down

0 comments on commit 5c24952

Please sign in to comment.