derf / feh

a fast and light image viewer
https://feh.finalrewind.org
Other
1.53k stars 159 forks source link

what of zoom-rate #732

Open stephenboston opened 10 months ago

stephenboston commented 10 months ago

I am looking for more precision in the ratio of change in a zoom step.

After this issue https://github.com/derf/feh/pull/677 I expected to use --zoom-rate=<some integer>

But my try gets this

 feh: unrecognized option '--zoom-rate=512'
myQwil commented 10 months ago

--zoom-step is the number of button or key presses between powers of 2 --zoom-rate represents the number of pixels between powers of 2 that the user clicks and drags between while in zoom mode.

Have you tried using --zoom-step?

Also, that change hasn't been approved yet. To test it, you'll need to build feh from scratch using that pull request's branch.

stephenboston commented 10 months ago

Ah yes. That's better. A step of 1 must be the smallest? and will have to be good enough. Thank you.

But out of interest: what happened to zoom-rate? Why am I not seeing it?

myQwil commented 10 months ago

No, a step of 1 is the largest. That would mean that every zoom step increases or decreases the zoom to the next or previous power of 2.

Actually no, 1 is not the largest, because you can specify fractions. The smaller the number, the bigger the jumps between zoom levels.