diff --git a/_data/releases.yaml b/_data/releases.yaml index a6dfbee..ca78012 100644 --- a/_data/releases.yaml +++ b/_data/releases.yaml @@ -26,6 +26,7 @@ c: - {version: 2.1.0, date: 2009-08-18, gz: 1} - {version: 2.0.0, date: 2009-07-16, gz: 1} python: + - {version: 1.4.3, date: 2025-12-03, gz: 1, xz: 1, whl: 1, src_: 1} - {version: 1.4.2, date: 2025-04-28, gz: 1, xz: 1, whl: 1, src_: 1} - {version: 1.4.1, date: 2024-10-30, gz: 1, xz: 1, whl: 1, src_: 1} - {version: 1.4.0, date: 2024-10-29, gz: 1, xz: 1, whl: 1, src_: 1} @@ -43,6 +44,7 @@ python: - {version: 0.3.0, date: 2011-12-16, gz: 1, xz: 1} - {version: 0.2.0, date: 2011-09-02, gz: 1, xz: 1} java: + - {version: 0.13.1, date: 2025-12-02, gh: 1, jar: 1} - {version: 0.13.0, date: 2024-05-04, gh: 1, jar: 1} - {version: 0.12.4, date: 2023-11-07, xz: 1} - {version: 0.12.3, date: 2022-12-17, xz: 1} @@ -62,6 +64,7 @@ java: - {version: 0.6.0, date: 2009-08-17, gz: 1} - {version: 0.5.0, date: 2009-07-15, gz: 1} bin: + - {version: 4.0.0.10, date: 2025-12-03, linux_aarch64: 1} - {version: 4.0.0.8, date: 2025-04-27, linux_aarch64: 1} - {version: 4.0.0.6, date: 2024-09-29, linux_aarch64: 1} - {version: 4.0.0.5, date: 2024-09-10, linux_aarch64: 1} diff --git a/_includes/news.md b/_includes/news.md index baf07d9..db17a22 100644 --- a/_includes/news.md +++ b/_includes/news.md @@ -1,5 +1,31 @@ {% include links.md %} +## Binary build 4.0.0.10, 2025-12-03 + +[Binary build 4.0.0.10][bin-4.0.0.10] drops Python 3.8 support in the Python +binary packages, enables SIMD JPEG decoding on macOS x86_64, and updates +many dependencies. + +[bin-4.0.0.10]: https://github.com/openslide/openslide-bin/releases/tag/v4.0.0.10 + + +## OpenSlide Python version 1.4.3, 2025-12-03 + +[OpenSlide Python 1.4.3][python-1.4.3] adds support for +[free-threaded Python][] and drops support for Python 3.9. + +[python-1.4.3]: https://github.com/openslide/openslide-python/releases/tag/v1.4.3 +[free-threaded Python]: https://docs.python.org/3/howto/free-threading-python.html + + +## OpenSlide Java version 0.13.1, 2025-12-02 + +[OpenSlide Java 0.13.1][java-0.13.1] fixes backward compatibility of JARs +built with Java newer than 22. + +[java-0.13.1]: https://github.com/openslide/openslide-java/releases/tag/v0.13.1 + + ## OpenSlide Python version 1.4.2, 2025-04-28 [OpenSlide Python 1.4.2][python-1.4.2] drops support for Python 3.8 and adds diff --git a/api/python/index.html b/api/python/index.html index ee85662..f9150a1 100644 --- a/api/python/index.html +++ b/api/python/index.html @@ -5,20 +5,20 @@ -
An open whole-slide image.
If any operation on the object fails, OpenSlideError is raised.
OpenSlide has latching error semantics: once OpenSlideError is
@@ -113,11 +113,11 @@
Return a string describing the format vendor of the specified file.
This string is also accessible via the PROPERTY_NAME_VENDOR
property.
If the file is not recognized, return None.
If the file is not recognized, return None.
filename – the file to examine
@@ -132,7 +132,7 @@k.
@@ -167,7 +167,7 @@ k.
@@ -176,12 +176,12 @@ Metadata about the slide, in the form of a
-Mapping from OpenSlide property name to
+Mapping from OpenSlide property name to
property value. OpenSlide provides some Standard properties,
plus additional properties that vary by slide format.
Images, such as label or macro images, which are associated with this
-slide. This is a Mapping from image
-name to RGBA Image.
Mapping from image
+name to RGBA Image.
Unlike in the C interface, these images are not premultiplied.
The embedded color profile for this slide,
-or None if not available.
None if not available.
ImageCmsProfile | None
+ImageCmsProfile | None
Return an RGBA Image containing the contents of
+read_region(location: tuple[int, int], level: int, size: tuple[int, int]) Image¶
+
Return an RGBA Image containing the contents of
the specified region.
Unlike in the C interface, the image data is not premultiplied.
Return the best level for displaying the given downsample.
Return an Image containing an RGB thumbnail of the
+get_thumbnail(size: tuple[int, int]) Image¶
+
Return an Image containing an RGB thumbnail of the
slide.
Use the specified OpenSlideCache to store recently decoded
slide tiles. By default, the OpenSlide has a private cache
with a default size.
Close the OpenSlide object.
bytes object in
-Image.info['icc_profile']. If no
+a bytes object in
+Image.info['icc_profile']. If no
profile is available, the icc_profile dictionary key is absent.
To include the profile in an image file when saving the image to disk:
image.save(filename, icc_profile=image.info.get('icc_profile'))
To perform color conversions using the profile, import it into
-ImageCms. For example, to synthesize an sRGB profile
+ImageCms. For example, to synthesize an sRGB profile
and use it to transform an image for display, with the default rendering
intent of the image’s profile:
from io import BytesIO
@@ -310,8 +310,8 @@ Basic usageOpenSlide.color_profile, already parsed into an
-ImageCmsProfile object. You can save processing time
-by building an ImageCmsTransform for the slide and
+ImageCmsProfile object. You can save processing time
+by building an ImageCmsTransform for the slide and
reusing it for multiple slide regions:
toProfile = ImageCms.createProfile('sRGB')
intent = ImageCms.getDefaultIntent(slide.color_profile)
@@ -327,7 +327,7 @@ Basic usage¶
-
-class openslide.OpenSlideCache(capacity: int)¶
+class openslide.OpenSlideCache(capacity: int)¶
An in-memory tile cache.
Tile caches can be attached to one or more OpenSlide objects
with OpenSlide.set_cache() to cache recently-decoded tiles. By
@@ -425,7 +425,7 @@
Caching¶
Exceptions¶
-
-exception openslide.OpenSlideError¶
+exception openslide.OpenSlideError¶
An error produced by the OpenSlide library.
Once OpenSlideError has been raised by a particular
OpenSlide, all future operations on that OpenSlide
@@ -435,14 +435,14 @@
Exceptions
-
-exception openslide.OpenSlideUnsupportedFormatError¶
+exception openslide.OpenSlideUnsupportedFormatError¶
OpenSlide does not support the requested file. Subclass of
OpenSlideError.
-
-exception openslide.OpenSlideVersionError¶
+exception openslide.OpenSlideVersionError¶
This version of OpenSlide does not support the requested functionality.
Subclass of OpenSlideError.
@@ -453,28 +453,28 @@ ExceptionsWrapping a Pillow Image¶
-
-class openslide.AbstractSlide¶
+class openslide.AbstractSlide¶
The abstract base class of OpenSlide and ImageSlide.
-
-class openslide.ImageSlide(file: str | bytes | PathLike[Any] | Image)¶
-A wrapper around an Image object that provides an
+class openslide.ImageSlide(file: str | bytes | PathLike[Any] | Image)¶
+
A wrapper around an Image object that provides an
OpenSlide-compatible API.
-
-openslide.open_slide(filename: str | bytes | PathLike[Any]) OpenSlide | ImageSlide¶
+openslide.open_slide(filename: str | bytes | PathLike[Any]) OpenSlide | ImageSlide¶
Return an OpenSlide for whole-slide images and an
ImageSlide for other types of images.
@@ -500,7 +500,7 @@ Exceptions
-
-class openslide.deepzoom.DeepZoomGenerator(osr: AbstractSlide, tile_size: int = 254, overlap: int = 1, limit_bounds: bool = False)¶
+class openslide.deepzoom.DeepZoomGenerator(osr: AbstractSlide, tile_size: int = 254, overlap: int = 1, limit_bounds: bool = False)¶
A Deep Zoom generator that wraps an OpenSlide object,
ImageSlide object, or user-provided instance of
AbstractSlide.
@@ -512,7 +512,7 @@ Exceptionstile_size + 2 * overlap should be a power of two.
overlap – the number of extra pixels to add to each interior edge of a
tile
-limit_bounds – True to render only the non-empty slide region
+limit_bounds – True to render only the non-empty slide region
@@ -522,7 +522,7 @@ Exceptions
- Type:
--
+
-
@@ -533,7 +533,7 @@ Exceptions
- Type:
--
+
-
@@ -545,7 +545,7 @@ Exceptionslevel_tiles[k] are the tile counts of level k.
@@ -557,14 +557,14 @@ Exceptionslevel_dimensions[k] are the dimensions of level k.
-
-get_dzi(format: str) str¶
+get_dzi(format: str) str¶
Return a string containing the XML metadata for the Deep Zoom .dzi
file.
@@ -577,8 +577,8 @@ Exceptions
-
-get_tile(level: int, address: tuple[int, int]) Image¶
-Return an RGB Image for a tile.
+get_tile(level: int, address: tuple[int, int]) Image¶
+Return an RGB Image for a tile.
- Parameters:
@@ -592,7 +592,7 @@ Exceptions
-
-get_tile_coordinates(level: int, address: tuple[int, int]) tuple[tuple[int, int], int, tuple[int, int]]¶
+get_tile_coordinates(level: int, address: tuple[int, int]) tuple[tuple[int, int], int, tuple[int, int]]¶
Return the OpenSlide.read_region() arguments corresponding to the
specified tile.
Most applications should use get_tile() instead.
@@ -609,7 +609,7 @@ Exceptions
-
-get_tile_dimensions(level: int, address: tuple[int, int]) tuple[int, int]¶
+get_tile_dimensions(level: int, address: tuple[int, int]) tuple[int, int]¶
Return a (pixels_x, pixels_y) tuple for the specified tile.
- Parameters:
@@ -745,13 +745,13 @@ This Page