I try to write a python script that does write on OME-TIFF without using any IJ.run methods. So far I got this
from loci.plugins.out import Exporter from loci.plugins import LociExporter # open image file and get a specific series imp, MetaInfo = ImportTools.openfile(r"c:\temp\test.czi") plugin = LociExporter() plugin.arg = r"c:\temp\test.ome.tiff" exporter = Exporter(plugin, imp) exporter.run() imp.close()
But I still have several questions or things I cannot figure out …
- Even the filename is specified the script opens a dialog prompting me to enter a filename to save the image. How do I avoid this?
- How to I avoid the dialog the write every plane separately?
- How do I avoid the request for the compression and how do I uncheck the option to export ROIs?
I need to run this completely without any user interaction.