diff --git a/CHANGELOG.md b/CHANGELOG.md index 3be895010..792abbdca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 1.30.4 + +### Bug Fixes + +- Fix a bug handling pure uint8 data introduced in #1725 ([#1734](../../pull/1734)) + ## 1.30.3 ### Improvements diff --git a/large_image/tilesource/tiledict.py b/large_image/tilesource/tiledict.py index 13b1264a0..a1d5e2fa2 100644 --- a/large_image/tilesource/tiledict.py +++ b/large_image/tilesource/tiledict.py @@ -175,7 +175,7 @@ def _resample(self, tileData: Union[ImageBytes, PIL.Image.Image, bytes, np.ndarr if self.resample in (False, None) or not self.requestedScale: return tileData, pilData pilResize = True - if (isinstance(tileData, np.ndarray) and tileData.dtype.kind != np.uint8 and + if (isinstance(tileData, np.ndarray) and tileData.dtype != np.uint8 and TILE_FORMAT_NUMPY in self.format and self.resample in {True, 2, 3}): try: import skimage.transform