# Export image series in different projections from .nii file

**URL:** https://discourse.slicer.org/t/export-image-series-in-different-projections-from-nii-file/19186
**Category:** Support
**Tags:** file-export
**Created:** [August 13, 2021, 12:52pm UTC](https://discourse.slicer.org/t/export-image-series-in-different-projections-from-nii-file/19186 "2021-08-13T12:52:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Emporio](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/emporio/32/11988_2.png) [@Emporio](https://discourse.slicer.org/u/Emporio)
#### Post date: [August 13, 2021, 12:52pm UTC](https://discourse.slicer.org/t/export-image-series-in-different-projections-from-nii-file/19186/1 "2021-08-13T12:52:52Z")

</div>

Hello dear experts. My English is very bad and therefore I am writing to you via google translate. I have a problem. How to get and save a series of photos from a .nii file from different projections in headless mode. I looked at the api for the built-in “Screen capture” module, but very likely it will not work as it just takes screenshots from the UI, which is simply absent in headless mode.

---

<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: [August 13, 2021, 1:04pm UTC](https://discourse.slicer.org/t/export-image-series-in-different-projections-from-nii-file/19186/2 "2021-08-13T13:04:15Z")

</div>

If you need to render, the easiest is to provide a virtual desktop, which can be done with [xvfb](https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml) or with a containerized Slicer (see [here](https://github.com/pieper/SlicerDockers) or [here](https://github.com/Slicer/SlicerDocker) for examples).

---

<div class="post-metadata">

### Author: ![Emporio](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/emporio/32/11988_2.png) [@Emporio](https://discourse.slicer.org/u/Emporio)
#### Post date: [August 16, 2021, 5:11am UTC](https://discourse.slicer.org/t/export-image-series-in-different-projections-from-nii-file/19186/3 "2021-08-16T05:11:55Z")

</div>

Thank you for advice, but I’m interested in a solution without a virtual machine, where images are read and saved through a python script.

---

<div class="post-metadata">

### Author: ![Emporio](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/emporio/32/11988_2.png) [@Emporio](https://discourse.slicer.org/u/Emporio)
#### Post date: [August 17, 2021, 5:40am UTC](https://discourse.slicer.org/t/export-image-series-in-different-projections-from-nii-file/19186/4 "2021-08-17T05:40:55Z")

</div>

Up post, pls help. I’m interested in a solution without a virtual machine, where images are read and saved through a python script.
