-
Notifications
You must be signed in to change notification settings - Fork 57
Unable to redner BIG png image #327
Comments
I tried compressing the image with image magic to a smaller size and to jpg but still same result. |
I can replicate this, for example: |
I got the same problem with other images. All of them have weird proportions and a lot of pixels, e.g: 24918x9920. |
Reading the source it looks like the picture is rendered directly as an opengl texture. I don't know anything about opengl but obviously there is a maximum size that depends on the gpu. |
Years ago when I first wrote imv it used multiple power-of-two sized textures to display the image. I don't remember the reasons for switching to a single-power-of-two texture, but I recall it supporting everything I tried at the time on the devices I had to test with. I suspect drivers are smart enough that if they're failing for certain images, they won't succeed for multiple textures of an equivalent total size being showed simultaneously. Downscaling and only displaying full resolution when zoomed into a smaller area of the image is probably the required solution, but that adds a lot of implementation complexity. |
Ok so this means that imv does not support certain resolutions, right? Hence, which resolutions are supported? And does this means that this issue is a #wontfix? |
@eXeC64 |
Similar problem |
@simoneruffini
Didn't have time to look at this in detail, but it looks like they are fixing the same issue by tiling the image in smaller texts. |
It's not a wontfix, the rendering just needs to be refactored to use multiple smaller textures when the image is too big for a single. I'm happy to review PRs, I just have very limited time to write code for imv myself currently. |
I have a png image of about 163 MB and imv is not able to render it. It just displays a big white backgroung (that is the main color of the image). I can open the image in the browser (firefox), it takes some time but it manages to do that.
Additional info:
-version: v4.2.0
-os: Linux DellXPS 5.11.11-arch1-1 #1 SMP PREEMPT Tue, 30 Mar 2021 14:10:17 +0000 x86_64 GNU/Linux
-wayland
If you need the image I'll try to upload it somehow (my internet connection is very limited in bandwidth)
The text was updated successfully, but these errors were encountered: