---
title: "wsidicom 0.38.0 Breaking Changes on PyPI | Since.dev"
description: "What each wsidicom release removed, renamed or changed: 64 breaking changes in 1 version on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/wsidicom
last_updated: 2026-12-04
---

# wsidicom breaking changes

wsidicom 0.38.0 (December 2, 2026) is its newest release with breaking changes, 64 of them. The first: Removed wsidicom.file.file_writer.SourcePyramidLevelWriter.run. Every breaking API change we have recorded in wsidicom on PyPI: 64 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.38.0`, released December 2, 2026. [Source repository](https://github.com/imi-bigpicture/wsidicom)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

## wsidicom 0.38.0 breaking changes

wsidicom 0.38.0, released December 2, 2026: 64 breaking changes.

- **Removed** `wsidicom.file.file_writer.SourcePyramidLevelWriter.run`  

SourcePyramidLevelWriter.run was removed in wsidicom 0.38.0 [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Removed** `wsidicom.file.file_writer.SourcePyramidLevelWriter.source_image_data`  

SourcePyramidLevelWriter.source_image_data was removed in wsidicom 0.38.0 [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Removed** `wsidicom.writing.instance_writers.SourcePyramidLevelWriter.run`  

SourcePyramidLevelWriter.run was removed in wsidicom 0.38.0 [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Removed** `wsidicom.writing.instance_writers.SourcePyramidLevelWriter.source_image_data`  

SourcePyramidLevelWriter.source_image_data was removed in wsidicom 0.38.0 [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Renamed** `wsidicom.writing.instance_writers.ImageData`  

Use wsidicom.writing.source_level_readers.ImageData instead. [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Renamed** `wsidicom.writing.instance_writers.Point`  

Use wsidicom.writing.source_level_readers.Point instead. [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Renamed** `wsidicom.writing.instance_writers.ReadExecutor`  

Use wsidicom.writing.source_level_readers.ReadExecutor instead. [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Renamed** `wsidicom.writing.instance_writers.TileReader`  

Use wsidicom.writing.source_level_readers.TileReader instead. [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Behavior changed**  

RLE images stated as YBR_FULL are not opened, including images written with RleSettings(channels=Channels.YBR). [github.com](https://github.com/imi-bigpicture/wsidicom/releases/tag/v0.38.0)
- **Behavior changed**  

Encoder settings raise ValueError for bits their format does not support and for color channels with other than 8 or 16 bits. Check that settings match the image's bits. [github.com](https://github.com/imi-bigpicture/wsidicom/releases/tag/v0.38.0)
- **Behavior changed** `JpegLosslessSettings`  

JpegLosslessSettings raises ValueError for Channels.YBR because it cannot store samples as YBR. [github.com](https://github.com/imi-bigpicture/wsidicom/releases/tag/v0.38.0)
- **Behavior changed** `JpegLsSettings`  

JpegLsSettings raises ValueError for Channels.YBR because it cannot store samples as YBR. [github.com](https://github.com/imi-bigpicture/wsidicom/releases/tag/v0.38.0)
- **Behavior changed** `JpegXlSettings`  

JpegXlSettings raises ValueError for Channels.YBR because it cannot store samples as YBR. [github.com](https://github.com/imi-bigpicture/wsidicom/releases/tag/v0.38.0)
- **Behavior changed** `NumpySettings`  

NumpySettings raises ValueError for Channels.YBR because it cannot store samples as YBR. [github.com](https://github.com/imi-bigpicture/wsidicom/releases/tag/v0.38.0)
- **Behavior changed** `RleSettings`  

RleSettings raises ValueError for Channels.YBR because it cannot store samples as YBR. [github.com](https://github.com/imi-bigpicture/wsidicom/releases/tag/v0.38.0)
- **Behavior changed** `WsiDicom.save`  

Saving an image with other than 8 or 16 bits raises ValueError, since stored whole slide image bits must be 8 or 16. Such images can still be opened and read. [github.com](https://github.com/imi-bigpicture/wsidicom/releases/tag/v0.38.0)
- **Default changed** `JpegLosslessSettings`  

JpegLosslessSettings now defaults to Channels.RGB. [github.com](https://github.com/imi-bigpicture/wsidicom/releases/tag/v0.38.0)
- **Default changed** `JpegXlSettings`  

JpegXlSettings now defaults to Channels.RGB. [github.com](https://github.com/imi-bigpicture/wsidicom/releases/tag/v0.38.0)
- **Default changed** `Settings`  

The bits and channels of the settings default to None, meaning not given. Settings.adapted_to() gives settings where they follow the given bits and samples per pixel. [github.com](https://github.com/imi-bigpicture/wsidicom/releases/tag/v0.38.0)
- **Default changed** `Settings.create`  

Settings.create() for JPEG Lossless (1.2.840.10008.1.2.4.57) now uses predictor 4, as predictor 1 gives SV1. [github.com](https://github.com/imi-bigpicture/wsidicom/releases/tag/v0.38.0)
- **Default changed** `WsiDicom.save`  

add_missing_levels and regenerate_pyramid of WsiDicom.save() now default to None and follow Source.prefer_regenerated_pyramid, which is false for DICOM sources. [github.com](https://github.com/imi-bigpicture/wsidicom/releases/tag/v0.38.0)
- **Configuration changed**  

The package now requires Pillow 10.2 or later, so older Pillow versions must be upgraded. [github.com](https://github.com/imi-bigpicture/wsidicom/releases/tag/v0.38.0)
- **Signature changed** `wsidicom.cache.DecodedFrameCache.get_tile_frame`  

Was def get_tile_frame(self, image_data_id: int, frame_index: int, frame_getter: Callable\[\[int\], CacheItemType\]) -> CacheItemType; now def get_tile_frame(self, image_data_id: int, frame_index: int, frame_getter: FrameGetter\[CacheItemType\])... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.cache.DecodedFrameCache.get_tile_frames`  

Was def get_tile_frames(self, image_data_id: int, frame_indices: Sequence\[int\], frames_getter: Callable\[\[Iterable\[int\]\], Iterator\[CacheItemType\]\]) -> Iterator\[CacheItemType\]; now def get_tile_frames(self, image_data_id: int, frame_indices... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.cache.FrameCache.get_tile_frame`  

Was def get_tile_frame(self, image_data_id: int, frame_index: int, frame_getter: Callable\[\[int\], CacheItemType\]) -> CacheItemType; now def get_tile_frame(self, image_data_id: int, frame_index: int, frame_getter: FrameGetter\[CacheItemType\])... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.cache.FrameCache.get_tile_frames`  

Was def get_tile_frames(self, image_data_id: int, frame_indices: Sequence\[int\], frames_getter: Callable\[\[Iterable\[int\]\], Iterator\[CacheItemType\]\]) -> Iterator\[CacheItemType\]; now def get_tile_frames(self, image_data_id: int, frame_indices... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.encoder.JpegXlSettings.__init__`  

Was def \_\_init\_\_(self, level: int | None = None, bits: int = 8, channels: Channels = Channels.YBR) -> None; now def \_\_init\_\_(self, level: int | None = None, bits: int | None = None, channels: Literal\[Channels.GRAYSCALE, Channels.RGB\] |... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.Jpeg2kSettings.__init__`  

Was def \_\_init\_\_(self, levels: float | Sequence\[float\] = 80, bits: int = 8, channels: Channels = Channels.YBR) -> None; now def \_\_init\_\_(self, levels: float | Sequence\[float\] = 80, bits: int | None = None, channels: Channels | None = None)... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.JpegLosslessSettings.__init__`  

Was def \_\_init\_\_(self, predictor: int = 1, bits: int = 8, channels: Channels = Channels.YBR) -> None; now def \_\_init\_\_(self, predictor: int = 1, bits: int | None = None, channels: Literal\[Channels.GRAYSCALE, Channels.RGB\] | None = None) ->... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.JpegLsSettings.__init__`  

Was def \_\_init\_\_(self, level: int = 0, bits: int = 8, channels: Channels = Channels.RGB) -> None; now def \_\_init\_\_(self, level: int = 0, bits: int | None = None, channels: Literal\[Channels.GRAYSCALE, Channels.RGB\] | None = None) -> None. [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.JpegSettings.__init__`  

Was def \_\_init\_\_(self, quality: int = 80, bits: int = 8, channels: Channels = Channels.YBR, subsampling: Subsampling = Subsampling.R422, optimize: bool = False) -> None; now def \_\_init\_\_(self, quality: int = 80, bits: Literal\[8, 12\] | None... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.NumpySettings.__init__`  

Was def \_\_init\_\_(self, bits: int = 8, channels: Literal\[Channels.GRAYSCALE, Channels.RGB\] = Channels.RGB, little_endian: bool = True, implicit_vr: bool = False) -> None; now def \_\_init\_\_(self, bits: Literal\[8, 16\] | None = None, channels... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.RleSettings.__init__`  

Was def \_\_init\_\_(self, bits: int = 8, channels: Channels = Channels.RGB) -> None; now def \_\_init\_\_(self, bits: Literal\[8, 16\] | None = None, channels: Literal\[Channels.GRAYSCALE, Channels.RGB\] | None = None) -> None. [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.Settings.__init__`  

Was def \_\_init\_\_(self, bits: int, channels: Channels) -> None; now def \_\_init\_\_(self, bits: int | None = None, channels: Channels | None = None) -> None. [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.settings.Jpeg2kSettings.__init__`  

Was def \_\_init\_\_(self, levels: float | Sequence\[float\] = 80, bits: int = 8, channels: Channels = Channels.YBR) -> None; now def \_\_init\_\_(self, levels: float | Sequence\[float\] = 80, bits: int | None = None, channels: Channels | None = None)... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.settings.JpegLosslessSettings.__init__`  

Was def \_\_init\_\_(self, predictor: int = 1, bits: int = 8, channels: Channels = Channels.YBR) -> None; now def \_\_init\_\_(self, predictor: int = 1, bits: int | None = None, channels: Literal\[Channels.GRAYSCALE, Channels.RGB\] | None = None) ->... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.settings.JpegLsSettings.__init__`  

Was def \_\_init\_\_(self, level: int = 0, bits: int = 8, channels: Channels = Channels.RGB) -> None; now def \_\_init\_\_(self, level: int = 0, bits: int | None = None, channels: Literal\[Channels.GRAYSCALE, Channels.RGB\] | None = None) -> None. [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.settings.JpegSettings.__init__`  

Was def \_\_init\_\_(self, quality: int = 80, bits: int = 8, channels: Channels = Channels.YBR, subsampling: Subsampling = Subsampling.R422, optimize: bool = False) -> None; now def \_\_init\_\_(self, quality: int = 80, bits: Literal\[8, 12\] | None... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.settings.JpegXlSettings.__init__`  

Was def \_\_init\_\_(self, level: int | None = None, bits: int = 8, channels: Channels = Channels.YBR) -> None; now def \_\_init\_\_(self, level: int | None = None, bits: int | None = None, channels: Literal\[Channels.GRAYSCALE, Channels.RGB\] |... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.settings.NumpySettings.__init__`  

Was def \_\_init\_\_(self, bits: int = 8, channels: Literal\[Channels.GRAYSCALE, Channels.RGB\] = Channels.RGB, little_endian: bool = True, implicit_vr: bool = False) -> None; now def \_\_init\_\_(self, bits: Literal\[8, 16\] | None = None, channels... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.settings.RleSettings.__init__`  

Was def \_\_init\_\_(self, bits: int = 8, channels: Channels = Channels.RGB) -> None; now def \_\_init\_\_(self, bits: Literal\[8, 16\] | None = None, channels: Literal\[Channels.GRAYSCALE, Channels.RGB\] | None = None) -> None. [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.codec.settings.Settings.__init__`  

Was def \_\_init\_\_(self, bits: int, channels: Channels) -> None; now def \_\_init\_\_(self, bits: int | None = None, channels: Channels | None = None) -> None. [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.file.file_writer.SourcePyramidLevelWriter.__init__`  

Was def \_\_init\_\_(self, level_index: int, dataset: WsiDataset, tile_cache: TileCache, source_group: Instances, tiled_size: Size, tile_reader: TileReader, queue_maxsize: int = 100, chunk_size: int | None = None, \*, focal_planes... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.file.io.wsidicom_io.WsiDicomReadIO.frame_reader`  

Was frame_reader: FileHandlePool | None; now frame_reader: FrameReader | None. [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.file.io.WsiDicomReadIO.frame_reader`  

Was frame_reader: FileHandlePool | None; now frame_reader: FrameReader | None. [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.file.wsi_file.WsiAssociatedFile.__init__`  

Was def \_\_init\_\_(self, image_type: Literal\[ImageType.LABEL, ImageType.OVERVIEW\], uids: FileUids, image_size: Size, tile_size: Size, pixel_spacing: SizeMm | None, focal_planes: tuple\[float, ...\], optical_paths: tuple\[str, ...\]... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.file.wsi_file.WsiFileBase.__init__`  

Was def \_\_init\_\_(self, image_type: ImageType, uids: FileUids, image_size: Size, tile_size: Size, pixel_spacing: SizeMm | None, focal_planes: tuple\[float, ...\], optical_paths: tuple\[str, ...\], transfer_syntax: UID... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.file.wsi_file.WsiLevelFile.__init__`  

Was def \_\_init\_\_(self, image_type: Literal\[ImageType.VOLUME\], uids: FileUids, image_size: Size, tile_size: Size, pixel_spacing: SizeMm, focal_planes: tuple\[float, ...\], optical_paths: tuple\[str, ...\], transfer_syntax: UID... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.file.wsi_file.WsiThumbnailFile.__init__`  

Was def \_\_init\_\_(self, image_type: Literal\[ImageType.THUMBNAIL\], uids: FileUids, image_size: Size, tile_size: Size, pixel_spacing: SizeMm, focal_planes: tuple\[float, ...\], optical_paths: tuple\[str, ...\], transfer_syntax: UID... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)
- **Signature changed** `wsidicom.file.wsidicom_file_target.Target.__init__`  

Was def \_\_init\_\_(self, uid_generator: UidGenerator, workers: int, include_pyramids: Sequence\[int\] | None = None, include_levels: Sequence\[int\] | None = None, add_missing_levels: bool = False, regenerate_pyramid: bool = False, transcoding... [pypi.org](https://pypi.org/project/wsidicom/0.38.0/)

And 14 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
