kanryu / quickviewer

A image/comic viewer application for Windows, Mac and Linux, it can show images very fast

Home Page:https://kanryu.github.io/quickviewer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fitting is doing a wrong resize

onuralparslan opened this issue · comments

In the latest version 1.1.8, the fitting function is resizing the image to a wrong size. Version 1.1.7 does not have this problem.

For example, I displayed a photo with size 7360x4700 on a 1600x900 screen. The fitting mode is set to "Fit to Window". When I clicked on "Fitting" button, the version 1.1.7 resized the image properly to fit it to the window size. However, version 1.1.8 decreased the image to a very small size so there was a large gap between the window and the image at the three corners of the image. Attached the screenshot of version 1.1.7 and 1.1.8.

version 1.1.7
version1 1 7

version 1.1.8
version1 1 8

It seems that the problem can be solved in v1.1.8 by increasing the "maximum size" setting of the application to a value higher than the size of the photo. However, v1.1.7 did not have this problem even when the "maximum size" setting was lower than the size of the photo. If this is the expected result, could you please add a warning message to the "status bar" saying that the photo cannnot fit to the screen due to this setting?

Thank you for the report.
Same cause as #146 .

It seem to be a problem with:

  • Bilinear interpolation (fast)
  • Nearest Neighbor
  • Bicubic (slow)
  • and Lanczos (very slow) shaders.

can be solved in v1.1.8 by increasing the "maximum size"

Increasing "Maximum size to hold the image" didn't help me.