Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy palette to new images in ImageOps expand #5551

Merged
merged 1 commit into from Jun 20, 2021

Conversation

radarhere
Copy link
Member

Helps #5375

ImageOps.expand() returns a new image instance, to allow for the larger size.

However, it doesn't copy the palette, causing the image to become grayscale.

This PR fixes that.

@hugovk hugovk merged commit e5b2d61 into python-pillow:master Jun 20, 2021
@radarhere radarhere deleted the imageops branch June 20, 2021 12:52
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.

None yet

2 participants