NEUBIAS / training-resources

Resources for teaching/preparing to teach bioimage analysis
https://neubias.github.io/training-resources
Other
42 stars 21 forks source link

TIFF questions.... #495

Open tischi opened 1 year ago

tischi commented 1 year ago

@joshmoore @bugraoezdemir

Does TIFF officially only have metadata for each plane (aka IFD), or is there also a place for some "overall metadata"?

joshmoore commented 1 year ago

If you mean non-OME-TIFF, I don't know. Googling I see https://stackoverflow.com/questions/1442218/multipart-tiff-and-exif-metadata but how official that is is always a question.

tischi commented 1 year ago

@joshmoore and are you in OME-TIFF just treating the first IFD special or where do you put general metadata?

joshmoore commented 1 year ago

There's a PlaneInfo field in the XML

tischi commented 1 year ago

And where is the XML? Is it part of the first IFD?

joshmoore commented 1 year ago

Exactly, from https://docs.openmicroscopy.org/ome-model/6.3.1/ome-tiff/specification.html

a string of OME-XML metadata embedded in the ImageDescription tag of the first IFD (Image File Directory) of each file. The XML string must be UTF-8 encoded.