diff --git a/PIL/EpsImagePlugin.py b/PIL/EpsImagePlugin.py index e818445a3..5b73698d3 100644 --- a/PIL/EpsImagePlugin.py +++ b/PIL/EpsImagePlugin.py @@ -335,7 +335,7 @@ class EpsImageFile(ImageFile.ImageFile): if not self.tile: return # Override the size of the image if specified - if not size is None: + if size is not None: self.size = size self.im = Ghostscript(self.tile, self.size, self.fp, scale) self.mode = self.im.mode