diff --git a/.changeset/switch-openjph-wasm.md b/.changeset/switch-openjph-wasm.md new file mode 100644 index 00000000..93cf1996 --- /dev/null +++ b/.changeset/switch-openjph-wasm.md @@ -0,0 +1,8 @@ +--- +"zarrextra": minor +"@spatialdata/vis": patch +--- + +Switch HTJ2K codec from `@cornerstonejs/codec-openjph` to `openjph-wasm`, which correctly round-trips multi-component (volumetric) HTJ2K data. The cornerstone build silently dropped components 2..N on decode; `openjph-wasm` handles arbitrary component counts losslessly. + +Also adds true z>1 multi-component chunk support: z-planes are now encoded as components of a single codestream rather than one plane per chunk. Exports `Htj2kPlane` from the package index. diff --git a/packages/vis/scripts/dev.mjs b/packages/vis/scripts/dev.mjs index 71fd5cb6..45a3090e 100644 --- a/packages/vis/scripts/dev.mjs +++ b/packages/vis/scripts/dev.mjs @@ -4,8 +4,8 @@ import { isPortInUse, listProcesses, portListeners, -} from '../../scripts/dev-process-utils.mjs'; -import { FIXTURE_SERVER_PORT } from '../../scripts/fixture-server-port.mjs'; +} from '../../../scripts/dev-process-utils.mjs'; +import { FIXTURE_SERVER_PORT } from '../../../scripts/fixture-server-port.mjs'; const DEMO_PORT = 5173; const pnpmCommand = process.platform === 'win32' ? 'pnpm.cmd' : 'pnpm';