Draft
Conversation
This was referenced Feb 26, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As part of the work to support figure usage and PDF/TIFF generation with OME-Zarr data (without using OMERO),
this PR focusses on the Figure_To_Pdf.py (see #619 for front-end changes).
We want to be able to use the same PDF/TIFF generation code both in OMERO and as a stand-alone script (in a python environment that doesn't have
omero-pyinstalled, but has zarr, dask etc instead).Basic idea is that you go to a stand-alone OMERO.figure app (from #619) e.g. https://will-moore.github.io/omero-figure/?file=https://gist.githubusercontent.com/will-moore/fe0e260544b46af6e1e523b288fc85bc/raw/30547e61d4d8753ef0016f0a70435f1aafb43c2f/OMERO.figure_NGFF_demo.json and
File > Saveto download thefigure.jsonfile.NB: LUTs not yet supported for Zarrs
Then, you run:
Another option supported by this PR is to download figure json from
/figureapp that is running from omero-web and contains OMERO images (useFile > Export as JSONthen save to a local file). Then, to generate the PDF, you can run the script with a connection to omero, with--omerooption:TODO:
pip install omero-figureoptions for installing omero-web app (do we need to specify omero-web as dependency?) OR as a script (dependencies include reportlab, markdown, zarr, dask, requests, aiohttp, pillow`