Skip to content

[BUG] Scale transformation mismatch between image and label #41

@tcompa

Description

@tcompa

Describe the bug

Hi there, I found what looks like a small bug in the scale at which a label array is displayed (relative to the corresponding OME-Zarr image). The same dataset loads fine in vizarr.

To Reproduce

  1. Run pnpm i & pnpm run dev for current main - 1178401.
  2. Open http://localhost:5173/?source=https://raw.githubusercontent.com/tcompa/hosting-ome-zarr-on-github/refs/heads/main/with_labels/20200812-CardiomyocyteDifferentiation14-Cycle1_mip.zarr/B/03/0 (this is a typical output coming from Fractal, also available at https://zenodo.org/records/10257149 - cc @jluethi).
  3. Enable the labels layer.
  4. Observe a scale mismatch - see screenshot below.
  5. Compare with how vizarr displays the same image+labels at https://hms-dbmi.github.io/vizarr/?source=https://raw.githubusercontent.com/tcompa/hosting-ome-zarr-on-github/refs/heads/main/with_labels/20200812-CardiomyocyteDifferentiation14-Cycle1_mip.zarr/B/03/0 - see screenshot below.

Note that the image and label multiscales have different YX scale transformations for their highest-resolution level:

Expected behavior

The same as vizarr.

Screenshots (if applicable)

biongff-viewer:

Image

vizarr:

Image

Environment (please complete the following information):

  • OS: Ubuntu24
  • Python/Node/Django/etc. version: pnpm 10.17.1
  • Browser (if applicable): Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions