quickviewer
quickviewer copied to clipboard
Doesn't display high res images
QV (win11) can't display high res images after update with Qt6. Qt5 version works fine.
Example images can be found here.
I was investigating the behavior of QuickViewer and Qt6 using the images you provided and found something interesting.
- Qt6 has a limit on the size of images that can be loaded
- more precisely, the size of the on-memory bitmap
- QImageReader::allocationLimit()
- limitation is 256MB
- This check was added in Qt6.
- Your image will be a 331MB bitmap, so it will be subject to the limit
- I'll add the ability to change this parameter in the next release of QuickViewer.
I tried to use setAllocationLimit in main.cpp. It works fine if opening image files, but crashes if opening folder or archive.
I made it! :)
Well, it seems fixed. ~~But my builds with msys2/clang64 now always crash on opening archive files~~.