#6940 closed bug (invalid)
"Stretch to window" somehow does not work as expected
Reported by: | stippi | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/ShowImage | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
With the current naming of the option and it being a checkable item, I'd expect images to remain stretched when resizing the window. At least after not having zoomed yet.
I would make it work this way:
- For images smaller than the current ShowImage window size, open them always at 100%.
- For images larger than the current ShowImage window size, always scale them down to fit the window.
- Introduce menu and/or tool bar actions "Fit to window" and "Show at original size"
As an additional note, I have found it very useful to be able to go back and forth between two or more images of the same size while locking the current zoom level and displayed image portion. Somehow this was possible with an older ShowImage (perhaps one even older than before the last rework on the app). For example, I experimented with different resizing algorithms and wanted to compare selected portions of resized images by toggling them.
So perhaps add another toggleable option "Lock current zoom level and displayed image portion".
Change History (3)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Sorry for being unclear and having overlooked the already existing "Fit to window" and "Original size" menu items. Also sorry for having been distracted at BeGeistert and not looking at the results respectively your interpretations of what I may have said earlier. :-)
I just noticed that everything actually works already like I suggested, provided that option is turned off, which it seems to be, by default. Don't know why I had it enabled, perhaps because I thought it would scale down larger images, but those are scaled down (like I would expect) regardless.
I do remember having suggested to keep the current zoom level when resizing the window, but perhaps that option would be less confusing when the current view portion was indeed locked.
comment:3 by , 14 years ago
With locked you mean that the option will not have any direct zoom effect when toggled? I thought about that, too, but since you likely change that option to actually see the image this way, I think it's more convenient even if confusing at first.
But if you think this should be solved better, feel free to reopen the ticket.
This is how it works right now. What you probably forgot to note is how "Stretch to window" is supposed to work differently. BTW, the current stretch-to-window behaviour is also modeled after your suggestion :-)
My initial suggestion was to stretch it until you zoomed the image manually.
At least your example is a very specific use case that wouldn't make it worthwhile to implement.