You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
P->RGBA->resize(LANCZOS)->P messes up transparency #2702
However, if I slightly change the script and save RGBA image after convertion and resize to a file and then reopen that file, quantize it to palette, then it's all good:
Activity
wiredfool commentedon Aug 31, 2017
Reproduced here. Bug is that the palette is still hanging around in the RGBA image:
Workaround Code:
Remove palettes from non-palette modes in _new python-pillow#2702
Merge pull request #2704 from wiredfool/issue_2702
onassar commentedon Sep 23, 2017
This fixes the issue for this image:

But the issue remains for this PNG:

Resizing results in something like this:

kkopachev commentedon Sep 25, 2017
That's a different issue with another library.
onassar commentedon Sep 25, 2017
How do you mean @kkopachev?
I'm using Thumbor and this is happening. Does it not happen in PIL natively?
kkopachev commentedon Sep 25, 2017
PIL is fine, it's issue in thumbor. I'll create PR there shortly.
onassar commentedon Sep 25, 2017
Okay thanks. I'll work up a series of examples that are causing issues and post it there to ensure everything is captured.
rogerchom commentedon Jan 22, 2018
Hey @kkopachev, have you created a PR to fix this yet? I saw thumbor/thumbor#989, but this addresses something different.
kkopachev commentedon Jan 22, 2018
@rogerchom thumbor/thumbor#988
rogerchom commentedon Jan 23, 2018
@kkopachev Thanks!