easymodo / qimgv

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

BUGFIX: Image Resize Policy #510

Closed zymelaii closed 9 months ago

zymelaii commented 1 year ago

Original resize policy depends on conf attribute expandImage and expandLimit which restrict the behavs of fitWidth & fitWindow. In some extreme cases they just do nothing or even act as if something went wrong. The fixture ignores the conf and make the two fit methods as they should be.

zymelaii commented 1 year ago

Original resize policy depends on conf attribute expandImage and expandLimit which restrict the behavs of fitWidth & fitWindow. In some extreme cases they just do nothing or even act as if something went wrong. The fixture ignores the conf and make the two fit methods as they should be.

There're still some bugs here.

I restore the resize policy only for the image but without the window, so there may be situations where the image size does not match the window size, e.g. in fitWidth mode.