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 134671 - `Zoom to Fit' needlessly scales down image
`Zoom to Fit' needlessly scales down image
Status: RESOLVED FIXED
Product: gthumb
Classification: Other
Component: general
2.2.x
Other Linux
: Normal minor
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
Depends on:
Blocks:
 
 
Reported: 2004-02-17 21:00 UTC by Evert Verhellen
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Evert Verhellen 2004-02-17 21:00:14 UTC
Having a screen resolution of 1280 x 960 pixels, I noticed that images of
1280 x 960 pixels in size, needlessly scale down to just below 100% in
`Zoom to Fit' mode. I verified that the same happens with a screen
resolution of 1024 x 768 pixels (and an image of that size).

Version: 2.2.1
Comment 1 Jason Tackaberry 2004-08-26 22:51:51 UTC
I've also noticed this bug for quite some time.  This is really only an issue
for fullscreen mode, and specifically the problem is that the image is not
spanning the full screen resolution, but rather there is a 1 pixel border around
all edges.

The problem is in libgthumb/image-viewer.[ch] where FRAME_BORDER/FRAME_BORDER2
is used.  Setting these constants to 0 fixes this problem, although it also
removes the 1 pixel border around the image when not in fullscreen mode.  I'm
not sure what other ramifications setting these values to 0 has, but if this is
the only one, I'd prefer correctness to this minor cosmetic issue.

I suppose the correct behaviour would be to assume FRAME_BORDER=0 only when in
fullscreen mode.
Comment 2 Paolo Bacchilega 2004-12-20 15:36:09 UTC
this is fixed now.