fix I;16 mode

This commit is contained in:
Alexander 2016-12-07 05:16:10 +03:00
parent ba92896a53
commit 9ee1f58215

View File

@ -17,6 +17,9 @@ def convert_to_comparable(a, b):
new_b = Image.new('L', b.size)
new_a.putdata(a.getdata())
new_b.putdata(b.getdata())
elif a.mode == 'I;16':
new_a = a.convert('I')
new_b = b.convert('I')
return new_a, new_b