-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Pillow 3.0.0] Wrong rotate behavior #1500
Comments
Sounds like a regression. Time for git bisect! 1500.py: from PIL import Image
img = Image.new('RGB', (1, 10), 'white')
assert(img.size == (1, 10))
assert(img.rotate(-90).size == (10, 1)) doit.sh: python setup.py develop && python 1500.py And: git bisect good 2.9.0
git bisect bad 3.0.0
git bisect run ./doit.sh Results in:
Here's the commit: f6d11a2. Ping @radarhere. |
Hi. Yes, my commit is responsible for this change. However, this is actually correct behaviour. If you want the image to change size when rotated, you need to include the
If you feel like Pillow should run differently, please feel free to suggest it. |
OK, so a bug in 2.9.0, fixed in 3.0.0. Thanks @radarhere! @novadev94 Please use |
Thank you for @novadev94 for this issue. @radarhere why this is not added to changelog? This is big change of default behavior... |
These broke due to an upstream API change in PIL/Pillow (see python-pillow/Pillow#1500) but this is also fairly rarely used.
These broke due to an upstream API change in PIL/Pillow (see python-pillow/Pillow#1500) but this is also fairly rarely used.
These broke due to an upstream API change in PIL/Pillow (see python-pillow/Pillow#1500) but this is also fairly rarely used.
Can you keep this documentation text in rotate method. I wasted my half day searching internet for a fix, but can't find this. |
Which text exactly are you referring to? The quoted bit is still in the docs (highlighted in orange below): |
Oh, i see, It was there but i was confused. |
I've noticed this bug today. This happens in our production server.
With
Pillow<=2.9.0
the size supposed to be(10, 1)
as the image is rotated. However with the newest versionPillow==3.0.0
, the size is(1, 10)
.I've gone through the Changelog and haven't seen any changes related to rotation.
Could you guys please take a look? And I'm always ready to provide extra information.
The text was updated successfully, but these errors were encountered: