Open dgault opened 4 years ago
Is an explicit check for PhysicalPixelSizeZ
necessary, or is a more generic warning to the effect of Some metadata may be lost when converting to TIFF; consider saving as OME-TIFF instead
sufficient?
A lot of what can be set via MetadataStore
won't be preserved when saving as TIFF, so my concern is that checking for a value in each lost field will quickly get to be complicated.
This issue has been mentioned on Image.sc Forum. There might be relevant details there:
https://forum.image.sc/t/loss-of-z-calibration-when-writing-reading-bigtiff-with-bioformats/101842/6
This request comes from forum thread https://forum.image.sc/t/saving-tiff-using-bioformats/34932/2
For OME-TIFF physical size is populated for X, Y, Z. However for standard TIFF it is only available for X and Y. It was suggested that a warning such as below to notify the user of the missing field would be helpful.
[WARNING] PhysicalPixelSizeZ was set but cannot be represented by Tiff files. Consider saving as ome.tif instead.