mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-01 03:33:21 +03:00
Disable fastpath when using center or translate
This commit is contained in:
parent
f286d8bb34
commit
fed4b52171
|
@ -1582,7 +1582,9 @@ class Image(object):
|
|||
|
||||
angle = angle % 360.0
|
||||
|
||||
# Fast paths regardless of filter
|
||||
# Fast paths regardless of filter, as long as we're not
|
||||
# translating or changing the center.
|
||||
if not (center or translate):
|
||||
if angle == 0:
|
||||
return self.copy()
|
||||
if angle == 180:
|
||||
|
|
Loading…
Reference in New Issue
Block a user