Add support for zarr-conventions thumbnails extension - #71
Conversation
- Implement selectBestThumbnail utility to choose optimal thumbnail based on size and format preferences (JPEG over PNG) - Update Thumbnail component to check for thumbnails convention and use pre-generated thumbnails when available - Fallback to ome-zarr rendering when no thumbnails convention exists - Support both path-based and URL-based thumbnail references Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
✅ Deploy Preview for ome-ngff-validator ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for ome-ngff-validator ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
https://github.com/lubianat/metadata_assets is an attempt at indicating whether some extra metadata files are present in the Zarr This happens e.g. with the ro-crate-metadata.json in the challenge. It also applies to the METADATA.ome.xml in bioformats2raw and in "conventional" layout when converting with eubi-bridge (https://euro-bioimaging.github.io/EuBI-Bridge/) and saving OME metadata. There are other potential cases for metadata being packed inside a OME-Zarr, even if not readable, for archival/human inspection I've added support on this draft, in the larger epic of "zarr-convention" support
|
From https://github.com/zarr-conventions/zarr-conventions-spec: If the Convention isolates metadata using a namespace prefix or a key for nesting, the name SHOULD match the namespace prefix (e.g., proj:) or the key used to nest attributes (e.g., ome)
|
I'm a bit confused about the relationship between thumbnail detection and XML metadata detection? |
|
Hi @will-moore, the relation is that:
but otherwise you are correct, these are separate things. But both experimental to some extent |
|
Testing the example at https://deploy-preview-71--ome-ngff-validator.netlify.app/?source=https://huggingface.co/buckets/tiagolubiana/sensory-czi-zarr/resolve/demo_hair.zarr
https://raw.githubusercontent.com/zarr-conventions/metadata_assets/refs/tags/v1/schema.json is 404 It took me a while to get my head around "Zarr Conventions" here, but the tooltip link was useful. I think some hierarchical layout might help: Zarr conventions:Metadata assets:CZI_MetaData.xmlCZI_MetaData.xml |


Testing support for https://github.com/clbarnes/zarr-convention-thumbnails
Checks for thumbnail convention and uses thumbnail when available, fallback to ome-zarr.js when no thumbnails are present.
The convention is WIP, opening the PR for the deploy preview