Commit d9d9a2b 1 parent 98b71b2 commit d9d9a2b Copy full SHA for d9d9a2b
File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 10
10
import ImageDraw
11
11
import ImageMode
12
12
13
- ANTIALIAS = Image .Resampling .LANCZOS if hasattr (Image , 'Resampling' ) else Image .ANTIALIAS
13
+ if hasattr (Image , 'Resampling' ):
14
+ ANTIALIAS = Image .Resampling .LANCZOS
15
+ else :
16
+ ANTIALIAS = Image .ANTIALIAS
14
17
# Image.Transpose added in 9.1.0
15
- FLIP_LEFT_RIGHT = (
16
- Image . Transpose . FLIP_LEFT_RIGHT if hasattr ( Image , ' Transpose' ) else Image .FLIP_LEFT_RIGHT
17
- )
18
- FLIP_TOP_BOTTOM = (
19
- Image . Transpose . FLIP_TOP_BOTTOM if hasattr ( Image , 'Transpose' ) else Image . FLIP_TOP_BOTTOM
20
- )
18
+ if hasattr ( Image , 'Transpose' ):
19
+ FLIP_LEFT_RIGHT = Image . Transpose .FLIP_LEFT_RIGHT
20
+ FLIP_TOP_BOTTOM = Image . Transpose . FLIP_TOP_BOTTOM
21
+ else :
22
+ FLIP_LEFT_RIGHT = Image . FLIP_LEFT_RIGHT
23
+ FLIP_TOP_BOTTOM = Image . FLIP_TOP_BOTTOM
21
24
EXIF_ORIENTATION = 0x0112
22
25
23
26
You can’t perform that action at this time.
0 commit comments