From d75d178a1896cf7a579c525d6f07559af4a81bb9 Mon Sep 17 00:00:00 2001 From: Mark Bader Date: Tue, 10 Sep 2024 14:22:17 +0200 Subject: [PATCH] Deactivate truncate_rgba_to_rgb in from_images conversion (#1192) * Deactivate truncate_rgba_to_rgb in from_images conversion. * Update changelog. --- webknossos/Changelog.md | 1 + webknossos/webknossos/dataset/dataset.py | 1 + 2 files changed, 2 insertions(+) diff --git a/webknossos/Changelog.md b/webknossos/Changelog.md index a3b97f8bd..3b17e2ea6 100644 --- a/webknossos/Changelog.md +++ b/webknossos/Changelog.md @@ -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 diff --git a/webknossos/webknossos/dataset/dataset.py b/webknossos/webknossos/dataset/dataset.py index f9b65e5ac..0f82d737d 100644 --- a/webknossos/webknossos/dataset/dataset.py +++ b/webknossos/webknossos/dataset/dataset.py @@ -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, )