gpicview doesn't fit image to window size

Bug #1878680 reported by tom
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gpicview (Ubuntu)
New
Undecided
Unassigned

Bug Description

gpicview has a button to 'fit image to window size'. It does nothing. Big windows, small windows, images always displayed original size.

Steps to reproduce:
get images. make window bigger than original image, so there is plenty of border/background visible. click fit image to window size. nothing happens.

get images. make window bigger than original image, so there is plenty of border/background visible. press right arrow to go to next image with fit image to window size active/depressed. it appears regular(small) size with tons of padding.

Revision history for this message
tom (tombuntus) wrote :

As far as I can tell, this 'feature' does work, but it only checks for values where window size is really small. It should arbitrarily zoom image when window is made large or small relative to image.

description: updated
Revision history for this message
Chris Guiver (guiverc) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:

apport-collect 1878680

(It will tell us your package details, what release you mean etc which will allow us to more easily see what you mean - I use `gpicview` very often and haven't noticed the issue)

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Revision history for this message
tom (tombuntus) wrote :

@guiverc Can you resize a gpicview window and the image inside goes to more than 100% its original size to "fit to window"?

Revision history for this message
tom (tombuntus) wrote :

This is an upstream gpicview issue I think. I've had it since 16.04, and on Fedora/Manjaro, too.

Revision history for this message
Chris Guiver (guiverc) wrote :

Please run the `apport-collect 1878680` on your box as no release details, package details or much of anything else is currently available.

On my Lubuntu 20.10 box, opening gpicview with an image, then resizing the window down does not alter the image size at all; it remained 100%. I can adjust the 100% up and down, and behavior is what I expect. I use `gpicview` on other systems too and have done so for years, and do believe they all act the same (ie. upstream).

Yes following your instructions I can see part of your issue (large window, if image is 127% and fits with border visible, selecting 'fit image to window size' causes it to drop to 100%). Knowing the program's interface very well I'd just hit ++++ to have it return to the 127%

The only supported release of Lubuntu that still provides `gpicview` is 18.04 LTS, which reaches EOL in a little under a year, so whilst this issue could be pushed upstream, it's not going to be high-priority I suspect given what I saw is a minor annoyance (unrelated to security).

The apport detail will allow us to compare release/package info & gain more information than we have currently (you've mentioned belief since 16.04, however the package isn't supported in 16.04 by Lubuntu, I've mentioned only 20.10 which makes it easiest to test changes, however it's a low priority package in that release as lximage-qt replaced gpicview in Lubuntu)

Revision history for this message
tom (tombuntus) wrote :

> On my Lubuntu 20.10 box, opening gpicview with an image, then resizing the window down does not alter the image size at all; it remained 100%. I can adjust the 100% up and down, and behavior is what I expect. I use `gpicview` on other systems too and have done so for years, and do believe they all act the same (ie. upstream).

This is not what is "expected", i.e. promised by the tooltip and the button's name: fit image to window size. Your expectations are not reasonable: you should expect exactly what the program explicitly promises: to automatically fit images to window size.

> Yes following your instructions I can see part of your issue (large window, if image is 127% and fits with border visible, selecting 'fit image to window size' causes it to drop to 100%). Knowing the program's interface very well I'd just hit ++++ to have it return to the 127%

This is the problem. Selecting fit image to window size means fit image to window size, not "press = or - to fit image to window size manually".

> what I saw is a minor annoyance (unrelated to security).

It's core functionality for all image viewers, and for some reason, doesn't seem to be present on linux image viewers. gthumb at least has the decency not to promise what it can't deliver, and the button/tooltip is called "fit to window if larger", which isn't all that useful. You may call it a minor annoyance: for me it's infuriating and pathetic. I wish I could find a decent image viewer on linux that has all the core features of normal image viewers on mac or windows, but this and other broken core features mean I haven't found one over at least 4 years, and across at least 10 applications.

This seems like an upstream problem.

Do you know of any linux image viewers with this feature properly implemented?

Do you know where I can report this bug for gpicview itself (not ubuntu)?

I know linux developers suck at UI/UX, and will probably change the promise instead of fulfilling it, like gthumb does, but at least then I'll have done my part.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.