! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Cannot Zoom In for Images Less Than 480 Pixels Wide
Status:
RESOLVED: MOVED
Product:
Ristretto
Component:
Application

Comments

Description sudoer 2019-09-12 18:25:48 CEST
Created attachment 9022 
An image with dimensions 479 x 3000 pixels.

Ristretto will not zoom in for images that are less than 480 pixels wide. I have attached an image to this bug report that is 479 pixels wide, and 3000 pixels tall. If you open it in Ristretto and try to zoom in (View -> Zoom -> Zoom In), or set it to its normal size (View -> Zoom -> Normal Size), nothing happens. However, if you make this image one pixel wider (so that it measures 480 x 3000 pixels), and open that in Ristretto, the zoom features work as expected.
Comment 1 Igor editbugs 2019-09-16 17:34:32 CEST
Hi, zooming works fine for me.
Are you sure you're using the git master version, as this bug says?
Will the behavior change if you resize the ristretto window, e.g. make it wider?
Comment 2 sudoer 2019-09-23 18:29:30 CEST
I've just verified that I am indeed using the git master version. The problem persists. However, changing the size of the window does change the behavior. When I made the Ristretto window smaller, suddenly it could zoom in on the image I attached. I experimented with this a bit further, and found a surprising result:

Ristretto is unable to zoom in on images that are less than 1/4th the window width.

My screen resolution is 1920x1080, and 1/4th of 1920 is 480, hence the number from the original report. I then resized Ristretto so that its window was exactly 2048 pixels wide, and tried zooming in on an image that was 512 pixels wide, and one that is 511 pixels wide. It could zoom in on the 512 one, but not the 511 one. I then made the Ristretto window exactly 512 pixels wide, and it could zoom in on an image 128 pixels wide, but not 127 pixels wide.

The ratio is the same in all 3 cases: if the image is less than 1/4th the width of the Ristretto window, Ristretto cannot zoom in. Try resizing your Ristretto window to EXACTLY 1920 pixels wide, then try zooming in on the example image I uploaded. It probably should fail to zoom in.
Comment 3 Igor editbugs 2019-09-30 15:48:13 CEST
I'm sorry but I just cannot reproduce the problem.
Ristretto that is fullscreen and exactly 1920 pixels wide can still zoom in the attached image for me.
I've also tried other images and window sized, so that the image width is less that 1/4 of the window width, but zooming in kept working.

What is your OS? Can you try another system to try this on?
Comment 4 Theo Linkspfeifer editbugs 2019-10-16 15:05:24 CEST
I was able to reproduce this bug with a 1680 pixels wide window and an image with the dimensions 236 x 1140.

Xubuntu 19.10
Comment 5 Git Bot editbugs 2020-05-25 00:33:12 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/apps/ristretto/-/issues/30.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #15955

Reported by:
sudoer
Reported on: 2019-09-12
Last modified on: 2020-05-25

People

CC List:
1 user

Version

Version:
master

Attachments

Additional information