pqiv icon indicating copy to clipboard operation
pqiv copied to clipboard

Missing SCALE_TO_FIT_WINDOW option/parameter/action

Open rwanyoike opened this issue 4 years ago • 3 comments

The SCALE_TO_FIT_WINDOW options exists in the code, but is not exposed as an option/parameter/action to the user.

rwanyoike avatar Apr 25 '20 09:04 rwanyoike

There is

       toggle_scale_mode(INT)
              Change  the  scale  mode:  Use  1 to disable scaling, 2 for automated scaledown (default), 3 to always scale images up, 4 to maintain the user-set zoom
              level, and 5 to maintain the window's size.  0 cycles through modes 1-3.

But pqiv --action='toggle_scale_mode(5)' IMAGE does not work ...?

laktak avatar Nov 30 '20 22:11 laktak

This is a pretty crucial use-case. I'm sort of surprised it wasn't the default. I love PQIV and am considering using it as a front-end for a commercial enterprise I am working on due to it being one of the few image vieweres that actually supports transparency without requiring fancy hardware. Somebody wrote a library for autohotkey (lol I know) that does the same thing in windows that I was going to look at- but now I see pqiv also has a windows port. Brilliant!

YerCodeSmellsFunny avatar Dec 10 '20 11:12 YerCodeSmellsFunny