How to disable saving PNG when saving an mrml scene

Hi all,

How can I disable the .png that automatically saves when I save the an mrml scene? I have no use for this screenshot of my scene and would like to turn off this feature.

Thanks

The thumbnail is saved with the scene to allow third-party software to preview scene content without being able to parse the files.

You can save the scene without this screenshot by using a Python command (calling qSlicerCoreIOManager::saveScene with an empty screenshot parameter).

1 Like

Thanks, this is helpful!

Using the command saves all the scene files. How can I save only the .mrml scene and .seg.nrrd?

Thanks

In general, the .mrml file is incomplete without the additional files that it refers to. The .seg.nrrd file is designed to be fairly self-contained, so you may not need to store the .mrml file. If there are some specific things you want to store with the segmentation then you can either add custom tags to segments (those are saved in the .seg.nrrd file) or create a json sidecar (additional metatada in a separate file).