# Exporting 2 volumes as a stack of image files (PNG).

**URL:** https://discourse.slicer.org/t/exporting-2-volumes-as-a-stack-of-image-files-png/20187
**Category:** Support
**Tags:** registration, visualization, file-export
**Created:** [October 16, 2021, 10:29pm UTC](https://discourse.slicer.org/t/exporting-2-volumes-as-a-stack-of-image-files-png/20187 "2021-10-16T22:29:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![neuralnet](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@neuralnet](https://discourse.slicer.org/u/neuralnet)
#### Post date: [October 16, 2021, 10:29pm UTC](https://discourse.slicer.org/t/exporting-2-volumes-as-a-stack-of-image-files-png/20187/1 "2021-10-16T22:29:14Z")

</div>

Operating system: Windows 10  
Slicer version: 4.10.2  
Expected behavior: N/A  
Actual behavior: N/A

Hi all,

I am very new to slicer and to medical imaging in general, so I apologize if this question is very obvious.

I have a pre-op MRI and post-op CT images for a patient. My goal is to display only the hardware from the CT, superimposed on the MRI.

I have already coregistered the images, and I have masked all the undesirable parts of the CT, isolating the hardware. When I look at my slices in the viewer in the three planes, what is displayed is perfect.

I was hoping to collect a stack of images (PNG or similar) from each view of the combined volumes. I was hoping to have each image be a slice through my volumes at a set slice separation. In the end I was hoping to have 3 image stacks: coronal, sagittal, transverse. In these images I am hoping to depict exactly what I see in the three viewing panels. My input images were not in DICOM format, but were NIFTI files.

Is this possible to do in a systematic way? I know that it is possible to capture a screenshot of a few slices, but I was hoping to generate all the images in one process.

Thank you so much for your help!

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [October 17, 2021, 2:42pm UTC](https://discourse.slicer.org/t/exporting-2-volumes-as-a-stack-of-image-files-png/20187/2 "2021-10-17T14:42:25Z")

</div>

Sounds like the [ScreenCapture](https://slicer.readthedocs.io/en/latest/user_guide/modules/screencapture.html) module will do what you need.

---

<div class="post-metadata">

### Author: ![neuralnet](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@neuralnet](https://discourse.slicer.org/u/neuralnet)
#### Post date: [November 12, 2021, 10:25pm UTC](https://discourse.slicer.org/t/exporting-2-volumes-as-a-stack-of-image-files-png/20187/3 "2021-11-12T22:25:15Z")

</div>

Hi @pieper , thank you so much for your reply. This did the trick! I appreciate it.
