@galavi/ome-zarr-adapter
v2026.4.30
Published
OME-Zarr adapter for Galavi: opens OME-Zarr stores via zarrita and exposes a Galavi-compatible tile source.
Maintainers
Readme
@galavi/ome-zarr-adapter
OME-Zarr adapter for Galavi.
Opens an OME-Zarr store via zarrita, reads
multiscales metadata, and exposes a Galavi-compatible tile fetcher that converts
zarr chunks to r16float tiles.
Supports OME-Zarr v0.5 (Zarr v3) and v0.4 (Zarr v2). Handles non-spatial
selection dimensions (c, t, ...).
Install
npm install @galavi/ome-zarr-adapter zarritaThe adapter has no runtime dependency on galavi itself; it produces plain
ArrayBuffer tiles (r16float packed) plus metadata that you wire into Galavi
sources on your side.
Usage
import { openOMEZarr, getVolumeTransform, getPhysicalSpace } from "@galavi/ome-zarr-adapter";
const info = await openOMEZarr("https://example.com/sample.ome.zarr");
const { scale, translate } = getVolumeTransform(info);
const space = getPhysicalSpace(info);
const tile = await info.fetchTile({
level: 0,
position: [0, 0, 0],
selection: { c: 0 },
});License
GPL-3.0
