Skip to content

Commit

Permalink
Deactivate truncate_rgba_to_rgb in from_images conversion (#1192)
Browse files Browse the repository at this point in the history
* Deactivate truncate_rgba_to_rgb in from_images conversion.

* Update changelog.
  • Loading branch information
markbader authored Sep 10, 2024
1 parent 4969c51 commit d75d178
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions webknossos/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ For upgrade instructions, please check the respective _Breaking Changes_ section
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v0.15.2...HEAD)

### Breaking Changes
- Conversion of images with 4 channels creates a dataset with four layers instead of a dataset with one RGB layer. [#1192](https://github.com/scalableminds/webknossos-libs/pull/1192)

### Added

Expand Down
1 change: 1 addition & 0 deletions webknossos/webknossos/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ def from_images(
batch_size=batch_size,
allow_multiple_layers=True,
max_layers=max_layers - len(ds.layers),
truncate_rgba_to_rgb=False,
executor=executor,
)

Expand Down

0 comments on commit d75d178

Please sign in to comment.