From 1d1513bcd1bf521b7c9a494cc026c6f781922c22 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Fri, 26 Feb 2021 14:56:54 -0500 Subject: [PATCH] Fix an issue with frame compositing and partial tiles. --- large_image/tilesource/base.py | 1 + 1 file changed, 1 insertion(+) 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