# Error Orientation image in saving volume (nrrd) to png or tiff

**URL:** <https://discourse.slicer.org/t/error-orientation-image-in-saving-volume-nrrd-to-png-or-tiff/9904>\
**Category:** Support\
**Created:** [January 22, 2020, 10:02am UTC](https://discourse.slicer.org/t/error-orientation-image-in-saving-volume-nrrd-to-png-or-tiff/9904 "2020-01-22T10:02:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlos-luque](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/carlos-luque/32/976_2.png) [@carlos-luque](https://discourse.slicer.org/u/carlos-luque)\
**Post date:** [January 22, 2020, 10:02am UTC](https://discourse.slicer.org/t/error-orientation-image-in-saving-volume-nrrd-to-png-or-tiff/9904/1 "2020-01-22T10:02:37Z")

</div>

Hello everyone,

I found a issue that is when a volume saves in png or tiff, the orientation is different than the original volume orientation.  
I checked the IKJtoRAS matrix in module volume and it is identity matrix. I don´t know where I can fix this issue.

I am using the 3D slicer version 4.11 (2020-01-08) in windons 10 and I downloaded the a nrrd and a png in this link [https://bit.ly/2RhJ0Hx](https://bit.ly/2RhJ0Hx). I think they can be useful.

Thanks in advance.

---

<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:** [January 22, 2020, 10:25am UTC](https://discourse.slicer.org/t/error-orientation-image-in-saving-volume-nrrd-to-png-or-tiff/9904/2 "2020-01-22T10:25:45Z")

</div>

yes, that’s to be expected - the nrrd file stores the image orientation in the header, while the png and tiff files don’t have any established way to store that information. The suggestion would be to use nrrd for cases where you need to preserve the orientation.

---

<div class="post-metadata">

**Author:** ![carlos-luque](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/carlos-luque/32/976_2.png) [@carlos-luque](https://discourse.slicer.org/u/carlos-luque)\
**Post date:** [January 22, 2020, 10:47am UTC](https://discourse.slicer.org/t/error-orientation-image-in-saving-volume-nrrd-to-png-or-tiff/9904/3 "2020-01-22T10:47:18Z")

</div>

I expect the png and tiff images have the same orientation as the orientation volume, when the png or tiff image is generated from the volume.  
I don´t know why the image orientation is different and I cannot use the nrrd file for our objectives

---

<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:** [January 23, 2020, 5:50pm UTC](https://discourse.slicer.org/t/error-orientation-image-in-saving-volume-nrrd-to-png-or-tiff/9904/4 "2020-01-23T17:50:13Z")

</div>

After talking with Carlos we determined that the PLUS server needs to be configured to send the same orientation as given when loading a png file in Slicer from the Add Data dialog (negative one on the first two elements on the diagonal).

---

<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:** [January 24, 2020, 10:01am UTC](https://discourse.slicer.org/t/error-orientation-image-in-saving-volume-nrrd-to-png-or-tiff/9904/5 "2020-01-24T10:01:02Z")

</div>

Thanks for sharing the results. This behavior is due that .png file format cannot save IJK to LPS matrix in the file, therefore a .png file is always assumed to have IJKToLPS=identity, which is equivalent to IJKtoRAS=diag(-1,-1,1,1).
