# How can I read/write series of .tiff in webpage using itk.js?

**URL:** https://discourse.itk.org/t/how-can-i-read-write-series-of-tiff-in-webpage-using-itk-js/5464
**Category:** Engineering
**Tags:** itk-js, javascript
**Created:** [November 3, 2022, 10:43am UTC](https://discourse.itk.org/t/how-can-i-read-write-series-of-tiff-in-webpage-using-itk-js/5464 "2022-11-03T10:43:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Yuvi-416](https://discourse.itk.org/user_avatar/discourse.itk.org/yuvi-416/32/2279_2.png) [@Yuvi-416](https://discourse.itk.org/u/Yuvi-416)
#### Post date: [November 3, 2022, 10:43am UTC](https://discourse.itk.org/t/how-can-i-read-write-series-of-tiff-in-webpage-using-itk-js/5464/1 "2022-11-03T10:43:43Z")

</div>

Hi all,

I am trying to read a series of .tiff or .tif files into the webpage using ITK.js. I know it supports it as it’s here [Supported Image File Formats | itk-wasm](https://insightsoftwareconsortium.github.io/itk-wasm/docs/image_formats.html) and it says I have to use the **readImageFileSeries** function to read it into a webpage.

And I did something like below:  
` <script src="https://unpkg.com/itk@14.0.1/umd/itk.js"></script>`

```auto
vol_prom[l] = itk.readImageFileSeries(vol_files[l], zSpacing=1.0, zOrigin=0.0).then(function ({ image: itkImage }) {
                vol_imageData = convertItkToVtkImage(itkImage)

```

However, I am getting errors like readImageFileSeries does not exist in ITK.js. I checked inside the ITK.js file and I realize that the readImageFileSeries file is not inside it.  
So how can I use the readImageFileSeries function?

Thank you

---

<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: [November 3, 2022, 1:50pm UTC](https://discourse.itk.org/t/how-can-i-read-write-series-of-tiff-in-webpage-using-itk-js/5464/2 "2022-11-03T13:50:46Z")

</div>

Did you take a look at the [migration guide](https://insightsoftwareconsortium.github.io/itk-wasm/docs/itk_js_to_itk_wasm_migration_guide.html)?

---

<div class="post-metadata">

### Author: ![Yuvi-416](https://discourse.itk.org/user_avatar/discourse.itk.org/yuvi-416/32/2279_2.png) [@Yuvi-416](https://discourse.itk.org/u/Yuvi-416)
#### Post date: [November 4, 2022, 12:00pm UTC](https://discourse.itk.org/t/how-can-i-read-write-series-of-tiff-in-webpage-using-itk-js/5464/3 "2022-11-04T12:00:55Z")

</div>

Thank you for sharing the solution.
