nomacs / nomacs

nomacs is a free image viewer for windows, linux, and mac systems.
GNU General Public License v3.0
1.84k stars 147 forks source link

Cannot load very large images (AVIF) #1075

Closed olekolek1000 closed 1 month ago

olekolek1000 commented 1 month ago

Describe the bug Opening an 10000x5000px .avif image causes Qt6 to fail with this message:

[WARNING] QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 256 megabytes
[WARNING] Memory cannot be allocated

To Reproduce Test avif image (10000x5000px): test.avif.zip

Desktop

novomesk commented 1 month ago

This is expected because nomacs is fully prepared for Qt6 yet, unfortunately.

However, you may try to suggest the Arch package maintainer of nomacs to include following commit/patch

https://github.com/nomacs/nomacs/commit/6acba757ec5340dedb128ee2bc1a0b0885e2166d

olekolek1000 commented 1 month ago

Okay, I see the fix is already in the master branch. Thanks!