This repository demonstrates how to download, update and run a Fiji script in headless mode, as proof of principle to deploy our scripts to the users of the image analysis facility. This was developed for and tested on a Linux machine.
- Run the download script to get a fresh Fiji install:
sh download_fiji.sh myfiji
- Change the sites.json file:
The first entry (
{ "IJPB-plugins": "IJPB-plugins", "Labkit": "Labkit" }
key
) is the name of the update site, the second (value
) is the path in the update site. So if in theadd update site
window of Fiji, the name of the site isFoo
and the update site ishttps://sites.imagej.net/bar
, then enter"Foo": "bar"
. - Run the update script:
sh update_fiji.sh --fiji myfiji/Fiji.app/ --sites sites.json
- Run the example script:
Here output can be an absolute or relative path, always between quotation marks:
myfiji/Fiji.app/ImageJ-linux64 --ij2 --headless --run macro.ijm 'output=""'
'output="example/path/to/folder"'
.