oferkv / phototonic

Image Viewer and organizer
GNU General Public License v3.0
159 stars 43 forks source link

"Fit to Width" and "Fit to Height" zooming issues for too-tall and too-wide images #267

Open catthou opened 3 years ago

catthou commented 3 years ago

With default image zoom set to "Fit to Width", images that are too tall for the screen (but not too wide) have problems zooming in and out. Same for "Fit to Height" and images that are too wide.

To reproduce:

  1. In browser, cilck Edit -> Preferences
  2. In the "Viewer" tab under the "Fit Large Images" select "By width"
  3. Navigate to an image that is taller than the screen but not wider than it. Hit enter to view the image.
  4. Hit + to zoom in. The problem occurs here: The first 'zoom in' centers the image.
  5. Hit + to zoom in again. The problem occurs again: The "zoom level" pop up says that you're zooming in but the image size/zoom does not change.
  6. Hit / or * to reset image to original size or reset zoom level. Image is still in its original size so these buttons do not do anything besides display their respective popups.

It almost seems like all the buttons are just reproducing the functionality of the "original size" hotkey.

The same trick can be done by setting "Fit Large Images" to "By height" and selecting an image that is wider than the screen (but not taller than it).