Editing XML in an OME-TIFF¶
To edit the XML in an OME-TIFF file you can use tiffcomment, one of the Bio-Formats tools.
The tiffcomment tool requires that the ImageDescription tag is present in the TIFF file and will error otherwise.
To use the built in editor run:
tiffcomment -edit sample.ome.tif
To extract or view the XML run:
To inject replacement XML into a file run:
tiffcomment -set 'newmetadata.xml' sample.ome.tif