GNOME Bugzilla – Bug 399991
Fit button doesn't scale up, only down
Last modified: 2008-03-03 16:41:15 UTC
This bug was filed in the Debian BTS. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=248447 "The 'Fit' button does exactly the same as the 'Normal' button. It doesn't do what I expect: fit the image to the size of the current window. [...] It is still there, exactly as it was before. Just view a small image (say 12x12 pixels). When hitting "Best Fit", nothing happens, it doesn't scale it up to fit in the bigger window. I can only make it fit better by clicking "Zoom In". When I zoom in a lot and then click Best Fit, it zooms out to 100% again. (If I want 100%, I will click on Normal Size...)" This is an old Debian bug, it it still seems to apply to eog 2.16.
It depends on how do you define "best fit". If best fit is intended to make the image completely visible in the window, then upscaling is not needed images smaller than the window. If it is intended to make images fit *exactly* on the window, no matter their size, then yes, this is a bug. According with the EOG API, it is easy to fix. If we agree on what is "best fit", we are done.
I was thinking about the same thing. It's worth to notice, gthumb seems to treat "best fit" as adjust to the window. Whatever the outcome of this bug, it would be a good idea to have this consistent between image viewers in GNOME.
Best fit means: if the image if bigger that the available window size, adjust it to fit the window size. If the image is smaller than the available size, it should *not* zoom in to fit the window size. This is NOTABUG but a design choice. Sven, I suggest you to file a bug about this for gthumb if it's inconsistent.
*** Bug 519751 has been marked as a duplicate of this bug. ***