Skip to content

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.

2 participants