mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-28 19:06:18 +03:00
Fixed wrong expected size of luts read from disk.
This commit is contained in:
parent
241f437b60
commit
4d75070223
|
@ -234,7 +234,7 @@ class MorphOp(object):
|
||||||
with open(filename, 'rb') as f:
|
with open(filename, 'rb') as f:
|
||||||
self.lut = bytearray(f.read())
|
self.lut = bytearray(f.read())
|
||||||
|
|
||||||
if len(self.lut) != 8192:
|
if len(self.lut) != LUT_SIZE:
|
||||||
self.lut = None
|
self.lut = None
|
||||||
raise Exception('Wrong size operator file!')
|
raise Exception('Wrong size operator file!')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user