Skip to content

Commit

Permalink
Support blosc for N5 (#7465)
Browse files Browse the repository at this point in the history
  • Loading branch information
frcroth authored Nov 29, 2023
1 parent 4487180 commit 71d59f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
- Zarr datasets can now be directly uploaded to WEBKNOSSOS. [#7397](https://github.com/scalableminds/webknossos/pull/7397)
- Added support for reading uint24 rgb layers in datasets with zarr2/zarr3/n5/neuroglancerPrecomputed format, as used for voxelytics predictions. [#7413](https://github.com/scalableminds/webknossos/pull/7413)
- Adding a remote dataset can now be done by providing a Neuroglancer URI. [#7416](https://github.com/scalableminds/webknossos/pull/7416)
- Added a filter to the Task List->Stats column to quickly filter for tasks with "Prending", "In-Progress" or "Finished" instances. [#7430](https://github.com/scalableminds/webknossos/pull/7430)
- Added a filter to the Task List->Stats column to quickly filter for tasks with "Pending", "In-Progress" or "Finished" instances. [#7430](https://github.com/scalableminds/webknossos/pull/7430)
- Added support for S3-compliant object storage services (e.g. MinIO) as a storage backend for remote datasets. [#7453](https://github.com/scalableminds/webknossos/pull/7453)
- Added support for blosc compressed N5 datasets. [#7465](https://github.com/scalableminds/webknossos/pull/7465)

### Changed
- An appropriate error is returned when requesting an API version that is higher that the current version. [#7424](https://github.com/scalableminds/webknossos/pull/7424)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.scalableminds.webknossos.datastore.datareaders.n5

import com.scalableminds.webknossos.datastore.datareaders.{
BloscCompressor,
BoolCompressionSetting,
CompressionSetting,
Compressor,
Expand All @@ -25,7 +26,8 @@ object N5CompressorFactory {
case "zlib" => new ZlibCompressor(properties)
case "gzip" if properties.getOrElse("useZlib", BoolCompressionSetting(false)) == BoolCompressionSetting(true) =>
new ZlibCompressor(properties)
case "gzip" => new GzipCompressor(properties)
case _ => throw new IllegalArgumentException("Compressor id:'" + id + "' not supported.")
case "gzip" => new GzipCompressor(properties)
case "blosc" => new BloscCompressor(properties)
case _ => throw new IllegalArgumentException("Compressor id:'" + id + "' not supported.")
}
}

0 comments on commit 71d59f7

Please sign in to comment.