Simplified code

This commit is contained in:
Andrew Murray 2022-01-11 13:50:00 +11:00
parent 9c6df29b4d
commit 01e7b3943d

View File

@ -74,9 +74,7 @@ class _Operand:
im1 = im1.crop((0, 0) + size)
if im2.size != size:
im2 = im2.crop((0, 0) + size)
out = Image.new(mode or im1.mode, size, None)
else:
out = Image.new(mode or im1.mode, im1.size, None)
out = Image.new(mode or im1.mode, im1.size, None)
im1.load()
im2.load()
try: