easymodo / qimgv

Image viewer. Fast, easy to use. Optional video support.
GNU General Public License v3.0
2.4k stars 169 forks source link

Feature request: Adjustable allocation limit #418

Closed kattjevfel closed 2 years ago

kattjevfel commented 2 years ago

Currently when trying to open very big images, you get this: qt.gui.imageio: QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 1024 megabytes.

I know it's unreasonably large, but I have several of these very large images I'd still like to be able to view them easily. If it matters it open fine in Okular (also qt).

I see you've set the limit here: https://github.com/easymodo/qimgv/blob/42b94307b0c59c3e2bb0cde46d0e9a0c80ede500/qimgv/sourcecontainers/imagestatic.cpp#L41-L43 Would it be possible to make this an adjustable setting, say under the Advanced options, for those of us crazy enough to wanna load stupidly large images?

Almost forgot, here's a test image!

easymodo commented 2 years ago

make this an adjustable setting, say under the Advanced options

done

accepted values are 512 - 8196 MB, default = 1024

kattjevfel commented 2 years ago

Thanks, that works great! :)