ivmartel / dwv-jqmobile

Medical image viewer using DWV (DICOM Web Viewer) and jQuery Mobile.
https://ivmartel.github.io/dwv-jqmobile/
GNU General Public License v3.0
32 stars 26 forks source link

How to load the dicom Zip file faster while using the Url method ? ( i am using input= "url") Method. #134

Closed ikhizarwork closed 8 months ago

ikhizarwork commented 1 year ago

i have a react application where the user clicks on the Anchor tag to view the dicom image , and the anchor tag brings the user to dwv-jqmobile application with the url of that dicom zip file using input="url" method , the problem is since the dicom zip file is quite large , so it is taking longer time to load up and i dont want the end user to wait for such a longer period , so is there any way or method through which i can reduced the waiting period for the end user ? how can the zip file gets loaded much faster using the url method ?

e.g :- http://127.0.0.1:5500/index.html?input=" URL"

the zip file gets loaded after a long period of wait, so plz help regarding it .

ivmartel commented 1 year ago

It is true the current zip loader waits for all the files to be unzipped before loading the dicoms, it could do it from the first unzipped file.

But I guess your main bottleneck is the HTTP transfer... And this one cannot be made faster... You could compare to transferring dicom file per dicm file to see if that gives better responsiveness.

ikhizarwork commented 1 year ago

can you help me with How to implement the dicom file per dcm file option ?

ivmartel commented 1 year ago

Check out the scroll example and how it uses app.loadURLs.

ikhizarwork commented 1 year ago

how to execute the scroll example in the canvas Div ? After using the scroll example in the index.html file, I'm able to view the dicom images but unable to use other tools, e.g zoomAndpan and so on ..., the way it use to open using an Url input method, i want it to open it that way, inside that canvas div, please let me know how to achieve that ?

in short where to execute the app.loadURLS, so that it gets viewed inside the canvas div and run normally with all the available tools ?

ivmartel commented 1 year ago

The tools available are the ones you pass to the app.init, check out the dwv demo and the viewer.js for an example.

ivmartel commented 8 months ago

Closing for now, feel free to comment if you need.