kanryu / quickviewer

A image/comic viewer application for Windows, Mac and Linux, it can show images very fast
https://kanryu.github.io/quickviewer/
GNU General Public License v3.0
543 stars 65 forks source link

Fitting is doing a wrong resize #147

Open onuralparslan opened 4 years ago

onuralparslan commented 4 years ago

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

onuralparslan commented 4 years ago

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?

kanryu commented 4 years ago

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

sakkamade commented 3 years ago

It seem to be a problem with:

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

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