mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 09:44:31 +03:00
Fix transform fill color for alpha images
This commit is contained in:
parent
e06e2777bc
commit
f0c4a436f3
|
@ -2115,11 +2115,11 @@ class Image(object):
|
|||
|
||||
if self.mode == 'LA':
|
||||
return self.convert('La').transform(
|
||||
size, method, data, resample, fill).convert('LA')
|
||||
size, method, data, resample, fill, fillcolor).convert('LA')
|
||||
|
||||
if self.mode == 'RGBA':
|
||||
return self.convert('RGBa').transform(
|
||||
size, method, data, resample, fill).convert('RGBA')
|
||||
size, method, data, resample, fill, fillcolor).convert('RGBA')
|
||||
|
||||
if isinstance(method, ImageTransformHandler):
|
||||
return method.transform(size, self, resample=resample, fill=fill)
|
||||
|
|
Loading…
Reference in New Issue
Block a user