-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Weird getcolors() output after some alpha/transparency processing #6797
Comments
https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.putalpha
So it makes sense to me that
https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.apply_transparency
You shouldn't need to run
When I run this code, it It makes sense to me that it would be the same - by I think you're saying that using |
Mmmm. I see.
... Aha, yea. I probably should have gone for a img4 case, instead of using img3 as output again, at the "## Ok ... Lets try something else." part. Closing: Invalid bug / local misunderstanding resolved. |
I've created PR #6798 to update the docstring. |
That adjustment would have definitely worked in my case. |
What did you do?
Trying to eradicate ... Erm, mask-out some image parts to get color-data on the remaining image data (pixel != 0).
What did you expect to happen?
To not get the same/identical color-data for both the source and the masked image.
What actually happened?
The source and the masked image actually returned the same/identical color-data.
What are your OS, Python and Pillow versions?
... Guess I just have to try some other route(s).
Local picked alternative. (simpler and probably faster too)
The text was updated successfully, but these errors were encountered: