diff --git a/CHANGELOG.md b/CHANGELOG.md index e4e206d..d815577 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] - +## [0.13.4] - 2024-11-06 + +### Fixed + +- Added `APERIO_JP2000_YCBC` as supported compression format for svs files. + ## [0.13.3] - 2024-10-10 ### Fixed @@ -225,7 +231,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial release of opentile. -[Unreleased]: https://github.com/imi-bigpicture/opentile/compare/v0.13.3..HEAD +[Unreleased]: https://github.com/imi-bigpicture/opentile/compare/v0.13.4..HEAD +[0.13.4]: https://github.com/imi-bigpicture/opentile/compare/v0.13.2..v0.13.3 [0.13.3]: https://github.com/imi-bigpicture/opentile/compare/v0.13.2..v0.13.3 [0.13.2]: https://github.com/imi-bigpicture/opentile/compare/v0.13.1..v0.13.2 [0.13.1]: https://github.com/imi-bigpicture/opentile/compare/v0.13.0..v0.13.1 diff --git a/opentile/__init__.py b/opentile/__init__.py index f77c6a1..29967dd 100644 --- a/opentile/__init__.py +++ b/opentile/__init__.py @@ -17,4 +17,4 @@ from opentile.opentile import OpenTile from opentile.metadata import Metadata -__version__ = "0.13.3" +__version__ = "0.13.4" diff --git a/opentile/formats/svs/svs_image.py b/opentile/formats/svs/svs_image.py index e5f34be..c1fb03e 100644 --- a/opentile/formats/svs/svs_image.py +++ b/opentile/formats/svs/svs_image.py @@ -224,7 +224,11 @@ def pixel_spacing(self) -> SizeMm: @property def supported_compressions(self) -> Optional[List[COMPRESSION]]: - return [COMPRESSION.JPEG, COMPRESSION.APERIO_JP2000_RGB] + return [ + COMPRESSION.JPEG, + COMPRESSION.APERIO_JP2000_RGB, + COMPRESSION.APERIO_JP2000_YCBC, + ] @property def mpp(self) -> SizeMm: diff --git a/opentile/tiff_image.py b/opentile/tiff_image.py index e7be7ec..c8dfdf2 100644 --- a/opentile/tiff_image.py +++ b/opentile/tiff_image.py @@ -60,7 +60,7 @@ def __init__( self.supported_compressions is not None and page.compression not in self.supported_compressions ): - raise NotImplementedError(f"Non-supported compression {self.compression}.") + raise NotImplementedError(f"Non-supported compression {page.compression}.") self._page = page self._file = file self._add_rgb_colorspace_fix = add_rgb_colorspace_fix diff --git a/pyproject.toml b/pyproject.toml index c61f80e..1baf558 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "opentile" -version = "0.13.3" +version = "0.13.4" description = "Read tiles from wsi-TIFF files" authors = ["Erik O Gabrielsson "] license = "Apache-2.0"