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

Fix for PIL version 10 #836

Merged
merged 2 commits into from
Nov 8, 2023
Merged

Fix for PIL version 10 #836

merged 2 commits into from
Nov 8, 2023

Conversation

davidplowman
Copy link
Collaborator

You can no longer do:

img.mode = 'RGBX'

but the alternative:

img = img.convert(mode='RGBX')

seems to work on older PIL versions, so we'll go with that.

You can no longer do "img.mode = 'RGBX'" but must use img.convert instead.

This seems to work on older PIL versions, but because it (presumably?)
copies the image we'll arrange it so that we only need it when saving
a PNG, so as not to slow up JPEG save.

Signed-off-by: David Plowman <[email protected]>
RGB888 and XRGB8888 were being displayed with a red-blue swap.

Signed-off-by: David Plowman <[email protected]>
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