Merge pull request #528 from HashSplat/master

Fixed downsample inf image issue
This commit is contained in:
Luke Campagnola 2018-04-25 16:32:02 -07:00 committed by GitHub
commit 1206981107
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -379,6 +379,10 @@ class ImageItem(GraphicsObject):
image = fn.downsample(self.image, xds, axis=axes[0])
image = fn.downsample(image, yds, axis=axes[1])
self._lastDownsample = (xds, yds)
# Check if downsampling reduced the image size to zero due to inf values.
if image.size == 0:
return
else:
image = self.image