User Story
A website with hyperlinks to remote OME-Zarrs can present the links using a special fiji:// scheme. For example, this HTML file
<html>
<head></head>
<body>
<p>A "normal" link to some remote Zarr dataset: <a href="https://haniffa.cog.sanger.ac.uk/fetal-immune/fetal-liver/visium/0.0.1/visium_1_raw.zarr">http link</a></p>
<p>A Fiji link to some remote Zarr dataset: <a href="fiji://open/url?p=https://haniffa.cog.sanger.ac.uk/fetal-immune/fetal-liver/visium/0.0.1/visium_1_raw.zarr">fiji remote link</a>
<p>A Fiji link to some local/on-disk Zarr dataset: <a href="fiji://open/file?p=/home/ulman/vyuka/Bc_slNoskova/datasety/CTC_CHOas2D_02_bigChunks_v2_blosc_zlib.zarr">fiji local link</a>
</body>
</html>
will, of course, show three links, with the latter two requiring a dedicated URL handler to open them. This shall be Fiji itself, and it could, for example, follow the current DnD opening behavior upon clicking any of the two links.
The middle link fiji://open/url?p=.... is the desired one here.
However, it is also possible to refer to local sources. This could be a way to associate the local viewer with OME-Zarr folders, much like one can associate one's favorite image viewer with TIFFs or PNGs. Clicking an OME-Zarr folder in the file browser could open it in Fiji.
Current thoughts
Based on community suggestions, the solution can be based on
This requires installing scijava-desktop-1.0.0.jar into your_Fiji.app/jars, and this package from the fiji_links branch. Registration with the OS can be made comfortably using Fiji -> Edit -> Options -> Desktop....
User Story
A website with hyperlinks to remote OME-Zarrs can present the links using a special
fiji://scheme. For example, this HTML filewill, of course, show three links, with the latter two requiring a dedicated URL handler to open them. This shall be Fiji itself, and it could, for example, follow the current DnD opening behavior upon clicking any of the two links.
The middle link
fiji://open/url?p=....is the desired one here.However, it is also possible to refer to local sources. This could be a way to associate the local viewer with OME-Zarr folders, much like one can associate one's favorite image viewer with TIFFs or PNGs. Clicking an OME-Zarr folder in the file browser could open it in Fiji.
Current thoughts
Based on community suggestions, the solution can be based on
fiji/fiji-linksthat proposes a scheme for such URIs, and gives examples "how to program it",scijava/scijava-desktopthat takes care of the OS-level integration.This requires installing
scijava-desktop-1.0.0.jarintoyour_Fiji.app/jars, and this package from thefiji_linksbranch. Registration with the OS can be made comfortably usingFiji -> Edit -> Options -> Desktop....