mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +03:00
Simplified code
This commit is contained in:
parent
9c6df29b4d
commit
01e7b3943d
|
@ -74,9 +74,7 @@ class _Operand:
|
||||||
im1 = im1.crop((0, 0) + size)
|
im1 = im1.crop((0, 0) + size)
|
||||||
if im2.size != size:
|
if im2.size != size:
|
||||||
im2 = im2.crop((0, 0) + size)
|
im2 = im2.crop((0, 0) + size)
|
||||||
out = Image.new(mode or im1.mode, size, None)
|
out = Image.new(mode or im1.mode, im1.size, None)
|
||||||
else:
|
|
||||||
out = Image.new(mode or im1.mode, im1.size, None)
|
|
||||||
im1.load()
|
im1.load()
|
||||||
im2.load()
|
im2.load()
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user