! 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 !
[Feature request] Persist zoom level setting
Status:
RESOLVED: MOVED
Product:
Ristretto
Component:
Application

Comments

Description Codifier 2015-03-25 17:06:14 CET
When I browse multiple images in Ristretto, I'd like for Ristretto to be able to persist the chosen zoom level setting across images (particularly when I choose 'fit to screen').

In my current version (0.6.3), if I chose 'fit to screen' for one image and move to another image in the Thumbnailbar list, the zoom level resets to 100%.

Would you be willing to add a preference that allows me to persist the zoom level setting for the current session and/or even persist it across multiple sessions?

Thank you in advance!
Comment 1 Igor editbugs 2016-10-05 12:22:44 CEST
Can you check if this is an issue in version 0.8.0?
For me, images are shown with 'fit to screen' zoom by default.
Comment 2 xyzdr4gon333 2018-08-11 19:02:09 CEST
Zoom to fit might be true for images which are too large, but images too small are not fitted to the screen. I want this, too.
Comment 3 xyzdr4gon333 2018-08-11 19:03:05 CEST
Forgot the most important, I'm using ristretto 0.8.2
Comment 4 Olivier Duchateau 2019-05-05 18:35:25 CEST
Created attachment 8491 
Keep zoom level in list of images

With this patch, Ristretto keeps zoom level in list of images. You need to create a new property (/image/keep-zoom):

xfconf-query -c ristretto -p /image/keep-zoom -n -t 'bool' -s 'true'

By default this value is FALSE.
Comment 5 Olivier Duchateau 2019-05-06 21:35:37 CEST
Created attachment 8495 
Keep zoom level in list of images

Same patch as previous one, but it adds GtkToggleButton in Preferences dialog (no need to create new property with xfconf-query) too.
Comment 6 Igor editbugs 2019-07-12 18:36:23 CEST
Hi Olivier,

Thanks for your patch but I don't think it works as expected.

Say, I open a larger image from a dir, and it opens as 30% because it doesn't fit into the screen otherwise. Then I switch to a smaller image within the same dir which would fit and open as 100% normally - but with the "keep zoom" setting enabled, I get it opened as 30% and really small. I would expect the smaller image to still open as 100%.
Comment 7 Git Bot editbugs 2020-05-25 00:31:06 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/17.

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 #11762

Reported by:
Codifier
Reported on: 2015-03-25
Last modified on: 2020-05-25

People

CC List:
4 users

Version

Attachments

Keep zoom level in list of images (3.89 KB, patch)
2019-05-05 18:35 CEST , Olivier Duchateau
no flags
Keep zoom level in list of images (7.09 KB, patch)
2019-05-06 21:35 CEST , Olivier Duchateau
no flags

Additional information