This is probably one of those problem-between-chair-and-keyboard issues, as I’m still a bit of a newcomer to Slicer.
I load in a TIFF stack as a volume and set the image spacing (2.7 microns in this instance), and I center the volume. I then save the project as a MRML file, not as an MRB bundle. When I reload the MRML file, the image spacing is not restored for the volume.
When I save as a MRB bundle, however, everything is restored just fine.
I’m sure I’m doing something incorrectly when saving as an MRML file, but I’ve looked through saving data in the docs on the Wiki and I don’t see anything screaming out at me.
When you save just the mrml file (xml) it points to the original tiff data, which has no spacing. When you save an MRB it writes all the data out into a temp directory and uses nrrd. So saving the volume as nrrd and referencing that from your mrml file, as @lassoan suggested, would be a good solution.
I just had the same problem. It might be worthwhile to put a warning into the Volume Information tab of the Volumes model when someone works from a TIFF or another format which does not support storing spacing information. It was even more confusing because only the z spacing was forgotten after a restart of the application, letting me think this was a bug.