Skip to content

Commit

Permalink
Add APERIO_JP2000_YCBC as supported compression (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikogabrielsson authored Nov 6, 2024
1 parent 8030def commit 0e6d043
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion opentile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
from opentile.opentile import OpenTile
from opentile.metadata import Metadata

__version__ = "0.13.3"
__version__ = "0.13.4"
6 changes: 5 additions & 1 deletion opentile/formats/svs/svs_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion opentile/tiff_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <erik.o.gabrielsson@sectra.com>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 0e6d043

Please sign in to comment.