[haiku-bugs] Re: [Haiku] #6937: ShowImage 100% zoom not 100%.

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sat, 24 Aug 2019 03:20:49 -0000

#6937: ShowImage 100% zoom not 100%.
--------------------------------------+----------------------------
   Reporter:  stippi                  |      Owner:  leavengood
       Type:  enhancement             |     Status:  in-progress
   Priority:  normal                  |  Milestone:  R1
  Component:  Applications/ShowImage  |    Version:  R1/Development
 Resolution:                          |   Keywords:
 Blocked By:                          |   Blocking:
Has a Patch:  0                       |   Platform:  All
--------------------------------------+----------------------------

Comment (by leavengood):

 I started working on this, and it was easy to add a check for smaller
 images (I decided that anything 200x200 or below is "small".) But then it
 made me question the need for the "Stretch to window" option, which I now
 see I questioned 8 years ago too.

 Axel thinks it is useful for slideshows, and that I might agree with, but
 I think better than an option would just be a good heuristic. Such as
 during a slideshow, if the image is within a certain percentage of the
 screen size, stretch it, otherwise don't. Of course now, 8 years later,
 images smaller than screens are probably pretty rare, so maybe even this
 heuristic is not so useful.

 The other thing is I think the default window size behavior is bad, and I
 want to fix that too. I think the window should be sized to just perfectly
 fit the image at normal zoom, certainly when first opening an image in a
 new window. In most cases this would make "Stretch to window" pretty
 useless. Of course it may be up for debate what we do when the user
 changes the image with the cursor keys, but I still think in general we
 avoid the "useless options" idea in favor of good defaults and nice
 behavior, and I think what I am suggesting is better.

 I'll experiment a bit and see what I come up with.

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/6937#comment:12>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: