# readImageFile - webworker generation

**URL:** <https://discourse.itk.org/t/readimagefile-webworker-generation/4249>\
**Category:** Engineering\
**Tags:** dicom, itk-js, javascript\
**Created:** [July 7, 2021, 10:16am UTC](https://discourse.itk.org/t/readimagefile-webworker-generation/4249 "2021-07-07T10:16:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam](https://discourse.itk.org/user_avatar/discourse.itk.org/sam/32/2169_2.png) [@sam](https://discourse.itk.org/u/sam)\
**Post date:** [July 7, 2021, 10:16am UTC](https://discourse.itk.org/t/readimagefile-webworker-generation/4249/1 "2021-07-07T10:16:11Z")

</div>

Hello everyone, I work on an application that allows to read medical images (DICOM format) and I use a itk js (readImageFile) that allows to read these images but that returns a webworker to each image read the problem is when I read several images it generates several webworker and it blocks the browser, is there a way to remove them from network or resources, (I tried webworker.terminate() but it does not work in my case) please any thing i can do to solve this ? thank you in advance.
