quickviewer icon indicating copy to clipboard operation
quickviewer copied to clipboard

Doesn't display high res images

Open eddiezato opened this issue 7 months ago • 2 comments

QV (win11) can't display high res images after update with Qt6. Qt5 version works fine.

Image

Example images can be found here.

eddiezato avatar May 22 '25 02:05 eddiezato

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.

kanryu avatar May 22 '25 07:05 kanryu

I tried to use setAllocationLimit in main.cpp. It works fine if opening image files, but crashes if opening folder or archive.

eddiezato avatar May 24 '25 18:05 eddiezato

I made it! :)

kanryu avatar Jun 22 '25 11:06 kanryu

Well, it seems fixed. ~~But my builds with msys2/clang64 now always crash on opening archive files~~.

eddiezato avatar Jul 06 '25 15:07 eddiezato