|0.1.9||Jun 13, 2022|
|0.1.8||Jun 8, 2022|
|0.1.7||Oct 22, 2020|
|0.1.6||Jul 18, 2020|
|0.1.0||Mar 18, 2018|
#82 in Science
59 downloads per month
An Australian strain of avian flu [(E)-Hydrazinylidenehydrazinylidene]azanide
- HTTP 2 N5: A simple program to serve N5 datasets over HTTP as tiled image stacks
Minimum supported Rust version (MSRV)
cargo install h2n5 h2n5 path/to/my.n5 curl http://127.0.0.1:8088/tile/group/dataset/0_1/512_256/1/2/3.jpg?q=80
Tile URLs are constructed as:
For example, the URL:
Will slice a 512 px by 256 px tile from the
group/dataset dataset along axes
0 (as tile X) and
1 (as tile Y), respectively. The returned tile will start at voxel coordinates [1, 2, 3], be encoded as JPEG, with a quality of 80.
For more options, see the command line help:
- PNG (
png) and JPEG (
jpeg) encoding formats are supported.
- Currently, only grayscale tiles are returned (by slicing remaining dimensions as singletons) or grayscale + alpha or RGBA by packing these scalar values across channels using the
packquery parameter. Slicing a third dimension for RGB(A) channels (e.g.,
0_1_4) will be supported, and is currently parsed correctly, but not yet implemented for tile encoding.
Supported data type, channel packing, and encoding formats
Logs are output to stderr using standard Rust
env_logger in the
actix_web scope. By default only major errors at the
WARN level or above are shown. For example, to show all requests:
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.