mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
remove redundant transparency check
This commit is contained in:
parent
0938145e57
commit
88d74883bb
|
@ -802,7 +802,7 @@ class Image:
|
||||||
# after quantization.
|
# after quantization.
|
||||||
trns_im = trns_im.convert('RGB')
|
trns_im = trns_im.convert('RGB')
|
||||||
trns = trns_im.getpixel((0,0))
|
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
|
delete_trns = True
|
||||||
|
|
||||||
if mode == "P" and palette == ADAPTIVE:
|
if mode == "P" and palette == ADAPTIVE:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user