Skip to content

Commit d75d178

Browse files
authored
Deactivate truncate_rgba_to_rgb in from_images conversion (#1192)
* Deactivate truncate_rgba_to_rgb in from_images conversion. * Update changelog.
1 parent 4969c51 commit d75d178

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

webknossos/Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ For upgrade instructions, please check the respective _Breaking Changes_ section
1313
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v0.15.2...HEAD)
1414

1515
### Breaking Changes
16+
- 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)
1617

1718
### Added
1819

webknossos/webknossos/dataset/dataset.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,7 @@ def from_images(
787787
batch_size=batch_size,
788788
allow_multiple_layers=True,
789789
max_layers=max_layers - len(ds.layers),
790+
truncate_rgba_to_rgb=False,
790791
executor=executor,
791792
)
792793

0 commit comments

Comments
 (0)