Open makinox opened 6 months ago
Resolution is proportional to the GPU memory and texture size, so it is not just the LED/LCD resolution of the phone, it is the actual hardware.
There are some solutions, you can try setting the
try these flags
if this works it is great
useNorm16Texture: true
preferSizeOverAccuracy: true,
or
useCPURendering: true,
useCPURendering: true
this works but makes the text on the dicom unreadable.
the rest two flags did not work for me.
Describe the Bug
In current versions of cornerstone I've found that in some cases some phones are presenting a behavior that the viewport, instead of showing the image instance, are just showing a white square.
My investigation leads towards to a resolution problem since the image has a big resolution (4280x3520) and the phone that is rendering the page has a resolution of 720x1600 This is the following message from WebGL
A possible solution for this that I have found is to transform the image instance into a low-resolution version, for example a 2140x1760 version of the same image.
Steps to Reproduce
The current behavior
Currently, rendering big images on some devices is resulting in white screens. WebGL is sharing a message that it cannot render out of range images.
The expected behavior
The expected behavior is to render the image instance correctly, since in previous versions of cornerstone (2.3.0) this was working.
Devices tested
Moto G9 play
Samsung Galaxy S23 Ultra
Samsung Galaxy A52
OS
Android 12
Node version
18.16.0
Browser
Google Chrome mobile 117.0.5938.61
Bug DICOM file
01.dcm.zip