mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-01 13:25:46 -04:00
rotate.py: fix for PILLOW 3.1.x
This commit is contained in:
parent
4186211e3f
commit
b00f9516e3
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ import os
|
|||
|
||||
img = Image.open(sys.argv[1])
|
||||
img.load()
|
||||
img2 = img.rotate(int(sys.argv[2]), None, True)
|
||||
img2 = img.rotate(int(sys.argv[2]), 0, True)
|
||||
img2.crop()
|
||||
if os.path.exists(sys.argv[3]): # delete any previous result file
|
||||
os.remove(sys.argv[3])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue