# How to disable saving PNG when saving an mrml scene

**URL:** <https://discourse.slicer.org/t/how-to-disable-saving-png-when-saving-an-mrml-scene/10121>\
**Category:** Support\
**Created:** [February 5, 2020, 7:40am UTC](https://discourse.slicer.org/t/how-to-disable-saving-png-when-saving-an-mrml-scene/10121 "2020-02-05T07:40:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent\_C](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vincent_c/32/5759_2.png) [@Vincent\_C](https://discourse.slicer.org/u/Vincent_C)\
**Post date:** [February 5, 2020, 7:40am UTC](https://discourse.slicer.org/t/how-to-disable-saving-png-when-saving-an-mrml-scene/10121/1 "2020-02-05T07:40:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 5, 2020, 3:39pm UTC](https://discourse.slicer.org/t/how-to-disable-saving-png-when-saving-an-mrml-scene/10121/2 "2020-02-05T15:39:42Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![Vincent\_C](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vincent_c/32/5759_2.png) [@Vincent\_C](https://discourse.slicer.org/u/Vincent_C)\
**Post date:** [February 5, 2020, 6:48pm UTC](https://discourse.slicer.org/t/how-to-disable-saving-png-when-saving-an-mrml-scene/10121/3 "2020-02-05T18:48:37Z")

</div>

Thanks, this is helpful!

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

Thanks

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 5, 2020, 7:17pm UTC](https://discourse.slicer.org/t/how-to-disable-saving-png-when-saving-an-mrml-scene/10121/4 "2020-02-05T19:17:31Z")

</div>

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).
