diff --git a/large_image/tilesource/base.py b/large_image/tilesource/base.py index 9bce21752..e2615161d 100644 --- a/large_image/tilesource/base.py +++ b/large_image/tilesource/base.py @@ -1373,6 +1373,7 @@ def _applyStyle(self, image, style, x, y, z, frame=None): self._classkey = self._classkey + '__unstyled' try: image = self.getTile(x, y, z, frame=frame, numpyAllowed=True) + image = image[:mainImage.shape[0], :mainImage.shape[1], :mainImage.shape[2]] finally: del self._skipStyle self._classkey = classkey