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
Problem rotating P images #5643
Labels
Comments
The image generated by rotating the picture is a binary image |
If you're looking for an immediate solution, you can convert it to RGB after opening. from PIL import Image
import random
img = Image.open('test.png').convert('RGB')
rate = random.randint(30, 330)
img = img.rotate(rate)
img.show()
img.save('test_rotate.png') |
Thank you for your answer. It's useful |
This problem was introduced by #5552 |
I've created PR #5647 to resolve this. If you want, you can test it to confirm that it fixes your problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: