Skip to content

Conversation

@city96
Copy link

@city96 city96 commented Apr 17, 2024

Proposed fix for issue #1269

Using Image.convert("RGB") results in broken backgrounds for some images, this PR changes the logic for RGBA images to use Image.alpha_composite with a new empty image instead. See issue above for details.

The color chosen for the alpha fill in this PR is pure white, which is different from what the old implementation defaulted to (pure black), since it seemed like a better fit for most images. This can be changed if required.

@city96
Copy link
Author

city96 commented Apr 21, 2024

Closing if favor of #1223

@city96 city96 closed this Apr 21, 2024
@city96 city96 deleted the RGBA-fix branch April 24, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant