Skip to content

Fileglancer backend#6

Draft
will-moore wants to merge 86 commits into
standalone_appfrom
fileglancer_backend
Draft

Fileglancer backend#6
will-moore wants to merge 86 commits into
standalone_appfrom
fileglancer_backend

Conversation

@will-moore
Copy link
Copy Markdown
Owner

@will-moore will-moore commented Mar 1, 2026

When using the standalone figure app with local OME-Zarr files, users will need to serve those files somehow.
One option is to use ome_zarr view my_image.zarr but the generated URL/to/my_image.zarr will depend where you ran ome_zarr and the path provided, so this URL is a bit temporary.

A nicer option is to use https://github.com/JaneliaSciComp/fileglancer, a locally-run FastAPI application that allows you to browse your local filesystem and view OME-Zarr images in the browser.
We can use Fileglancer-served OME-Zarrs in the standalone figure app (hosted on github), then download the figure.json files and run Figure_To_Pdf.py script locally.

However, for the best user experience, we can try to use Fileglancer server as the backend to replace omero-web and OMERO.server for exporting figures to PDF/TIFF, and eventually for all the backend functionality:

  • Serve the static html/js/css app
  • Run the Figure_to_pdf.py script
  • Browse the local file system to Open Figure.json files and Save them

To test (very much work in progress)! - see https://github.com/will-moore/fileglancer/blob/main/docs/Development.md

cd fileglancer

install steps

$ pixi run dev-install
$ cp docs/config.yaml.template config.yaml

# install figure (this branch) into same pixi env...

$ eval "$(pixi shell-hook)"
$ cd /path/to/omero-figure 
# checkout this branch - install with dependencies needed for export script
$ pip install -e .[export]
$ npm run build    # or npm run watch

Run with

$ cd fileglancer
$ pixi run dev-launch

Open Fileglancer at http://127.0.0.1:7878/ and login (pick any username).
Browse to find a local OME.zarr image and "copy URL" button.

Go to http://127.0.0.1:7878/omero-figure/ which should load the static figure app.
With a new figure, Add Image and paste in the zarr URL.

Export to PDF -> choose local directory to store the figure -> OK.

will-moore and others added 30 commits November 21, 2025 09:54
…l contains plate, well, or wellsample (per review by @Tom-TBT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants