# Reading 2d png image stack to 3d volume rendering

**URL:** <https://discourse.itk.org/t/reading-2d-png-image-stack-to-3d-volume-rendering/3914>\
**Category:** Beginner Questions\
**Created:** [February 26, 2021, 7:15pm UTC](https://discourse.itk.org/t/reading-2d-png-image-stack-to-3d-volume-rendering/3914 "2021-02-26T19:15:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saptarshi\_Paul](https://discourse.itk.org/user_avatar/discourse.itk.org/saptarshi_paul/32/1957_2.png) [@Saptarshi\_Paul](https://discourse.itk.org/u/Saptarshi_Paul)\
**Post date:** [February 26, 2021, 7:15pm UTC](https://discourse.itk.org/t/reading-2d-png-image-stack-to-3d-volume-rendering/3914/1 "2021-02-26T19:15:06Z")

</div>

Hello Everyone,  
I am new to itk.js and volume rendering as a whole. I was able to create a 3d volume from 2d png image stack in vtk python. Now i want to run the same thing in vtk.js and use itk.js to read the image stack and render it using vtk.js in my application as vtk.js doesnt have vtkpngreader function. But I have no clue to how to proceed with that. Any help, guidance or tutorials will greatly be appreciated.

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [February 26, 2021, 8:55pm UTC](https://discourse.itk.org/t/reading-2d-png-image-stack-to-3d-volume-rendering/3914/2 "2021-02-26T20:55:40Z")

</div>

You should search for itk.js DICOM example, as that should be the most similar to your case (replace DICOMs by your PNGs). [First hit on this forum](https://discourse.itk.org/t/itk-js-readimagedicomfileseries/2086/2).

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [March 8, 2021, 4:30pm UTC](https://discourse.itk.org/t/reading-2d-png-image-stack-to-3d-volume-rendering/3914/3 "2021-03-08T16:30:44Z")

</div>

Hello @Saptarshi_Paul ,

Welcome to the ITK community ☀ !

Please try `readImageFileSeries` from this PR:

> <https://github.com/InsightSoftwareConsortium/itk-js/pull/404>

and let us know how it goes.

---

<div class="post-metadata">

**Author:** ![Saptarshi\_Paul](https://discourse.itk.org/user_avatar/discourse.itk.org/saptarshi_paul/32/1957_2.png) [@Saptarshi\_Paul](https://discourse.itk.org/u/Saptarshi_Paul)\
**Post date:** [March 29, 2021, 1:40pm UTC](https://discourse.itk.org/t/reading-2d-png-image-stack-to-3d-volume-rendering/3914/4 "2021-03-29T13:40:16Z")

</div>

Hello Matt,

I hope you are doing well. Thank you so much for the reply. I really appreciate your help and it worked. I apologize for the late reply.
