After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 616510 - Show a border around images
Show a border around images
Status: RESOLVED OBSOLETE
Product: eog
Classification: Core
Component: image viewer
2.30.x
Other Linux
: Normal normal
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-04-22 12:55 UTC by Allan Day
Modified: 2015-08-28 19:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.29/2.30


Attachments
[ZoomToFit] Add a border around images (7.04 KB, patch)
2010-07-13 15:22 UTC, Florian Müllner
none Details | Review
Mockup showing an image border (500.82 KB, image/png)
2010-07-13 15:44 UTC, Allan Day
  Details

Description Allan Day 2010-04-22 12:55:58 UTC
EoG currently fits the image right up to the edges of the viewing area. This is not the best for viewing purposes. Having the background colour surround the image in order to frame it will enable the picture to be viewed more easily. This is what happens when images are physically framed - a mount is used to surround the image in order to achieve maximum viewing pleasure. :)

I've attached a mockup to demonstrate what I mean.
Comment 1 Florian Müllner 2010-07-13 15:22:39 UTC
Created attachment 165808 [details] [review]
[ZoomToFit] Add a border around images

The current zoom-to-fit behavior is to fit the image exactly into
the viewing area - while this maximizes the use of screen real
estate, the image looks a lot more balanced when leaving a small
frame around it.

Add a (hidden) configuration option to set the maximum fraction of
the content area the image should cover, with a default value of
0.9 (e.g. leaving a minimum of 5% of the viewing area around each
edge).

This implements a design proposal from Allan Day.


(In reply to comment #0)
> I've attached a mockup to demonstrate what I mean.

No, you didn't ;-)

Seriously, I'm no designer/usability guru/.., so while I understand your reasoning, I still had to pull a default minimum frame width out of *ehem* somewhere. So in addition to the code review a quick ui review would be appreciated as well ...
Comment 2 Allan Day 2010-07-13 15:43:02 UTC
(In reply to comment #1)

> This implements a design proposal from Allan Day.

Yay!
 
> (In reply to comment #0)
> > I've attached a mockup to demonstrate what I mean.
> 
> No, you didn't ;-)

Ha, apologies. I'll rectify that.

> Seriously, I'm no designer/usability guru/.., so while I understand your
> reasoning, I still had to pull a default minimum frame width out of *ehem*
> somewhere. So in addition to the code review a quick ui review would be
> appreciated as well ...

I used a minimum frame width of 30 pixels for the mockups, but I didn't consider different viewing area sizes. Your approach will suit smaller viewing areas better. Hylke: have you got an opinion on this?

I'll do my best to review this, though it may have to wait a while.
Comment 3 Allan Day 2010-07-13 15:44:26 UTC
Created attachment 165813 [details]
Mockup showing an image border
Comment 4 Hylke Bons 2010-07-13 15:48:20 UTC
I think a multiple of 6px as specified by the HIG is fine.
Comment 5 Felix Riemann 2010-07-18 18:06:39 UTC
This only works when set to fit the image.
Allan, is that really what you wanted? Feels a bit strange to me that way.
Comment 6 Allan Day 2010-07-18 18:23:58 UTC
(In reply to comment #5)
> This only works when set to fit the image.
> Allan, is that really what you wanted? Feels a bit strange to me that way.

The image should always have a border round it, even when zoomed in. This is why I suggested using a hand cursor to pan (as described in bug 491851).
Comment 7 Felix Riemann 2015-08-28 19:10:18 UTC
I think this is obsolete by now, as we're going the "as-much-space-as-possible-for-the-image" route at the moment.