From 4d75070223febe8a2d75a050625d5a6f3042c9f6 Mon Sep 17 00:00:00 2001 From: Dov Grobgeld Date: Tue, 30 May 2017 16:34:41 +0300 Subject: [PATCH] Fixed wrong expected size of luts read from disk. --- PIL/ImageMorph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/ImageMorph.py b/PIL/ImageMorph.py index 8382f7ce0..dcce63fa4 100644 --- a/PIL/ImageMorph.py +++ b/PIL/ImageMorph.py @@ -234,7 +234,7 @@ class MorphOp(object): with open(filename, 'rb') as f: self.lut = bytearray(f.read()) - if len(self.lut) != 8192: + if len(self.lut) != LUT_SIZE: self.lut = None raise Exception('Wrong size operator file!')