# How to convert image to png series?

**URL:** <https://discourse.itk.org/t/how-to-convert-image-to-png-series/1799>\
**Category:** Uncategorized\
**Created:** [April 18, 2019, 1:35am UTC](https://discourse.itk.org/t/how-to-convert-image-to-png-series/1799 "2019-04-18T01:35:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![srbn.ghosh89](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/3ec8ea/32.png) [@srbn.ghosh89](https://discourse.itk.org/u/srbn.ghosh89)\
**Post date:** [April 18, 2019, 1:35am UTC](https://discourse.itk.org/t/how-to-convert-image-to-png-series/1799/1 "2019-04-18T01:35:10Z")

</div>

Hi,

In patient skull dicom data, there are 3 types of information, axial, coronal, saggital. I want to split these 3 types of image separately. How to do that using ITK?

---

<div class="post-metadata">

**Author:** ![fbudin](https://discourse.itk.org/user_avatar/discourse.itk.org/fbudin/32/14_2.png) [@fbudin](https://discourse.itk.org/u/fbudin)\
**Post date:** [April 18, 2019, 12:37pm UTC](https://discourse.itk.org/t/how-to-convert-image-to-png-series/1799/2 "2019-04-18T12:37:28Z")

</div>

You should try to use the code in [this example](https://itk.org/ITKExamples/src/IO/GDCM/ReadDICOMSeriesAndWrite3DImage/Documentation.html) (both C++ and Python code available. It calls `SetUseSeriesDetails(True)` which should do what you want.
