Shortcut(s) for minimum zoom, zoom to percentage of canvas size

Open
#1,995 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
desktop

Research direction

Start by locating the existing media-viewer commands for maximum zoom, 100% versus maximum zoom, canvas fit, and percentage zoom, then inspect how their shortcuts and user-configured zoom values are represented. Compare those entry points with the requested minimum-zoom and canvas-size-percentage variants. Done means the requested commands are available, including forced-centering variants, with behavior matching the existing counterparts.

Written by the indexing model from the issue text.

Description

feature-request

I would like the following shortcuts for media viewers:

  1. Minimum zooms (counterparts to max zoom shortcuts that already exist)
    1. zoom: min: set the zoom percent to the minimum the user has set in their options (counterpart to zoom: max.)
    2. zoom: min with forced media viewer center: the above, but with a forced re-centering of the media, obviously.
    3. zoom: switch between 100% and min zoom: counterpart to switch between 100% and max zoom
    4. zoom: switch between canvas fit and min zoom: counterpart to switch between canvas fit and max zoom
  2. Percentage of canvas size zooms (supplements to set to percentage and canvas fit options)
    1. zoom: set to percentage of canvas size: set the zoom of the media to a value that is a percent of the media viewer canvas size.

      For example, if the canvas size is 2160x1440, then setting it to 50% of canvas size would be like zoom:canvas fit but as if the canvas was 1080x720. If the user inputs 100% for this, it will be the same as if they used zoom:canvas fit.

    2. zoom: set to percentage of canvas size with forced media viewer center: the above, but with a forced re-centering of the media, obviously.

My use case is that it would be faster than repeatedly pressing zoom shortcuts (or scrolling using a wheel/trackpad) while filtering duplicates where the media is quite large and part of it gets obscured by the duplicate filtering UI. In those cases, I have to scroll out to see the media, and this creates imprecision and is (even if only by a split second) slower than just setting to a particular zoom. However, the shortcut for setting it to a particular percentage is not useful for me, because images can be all sorts of sizes relative to the canvas size, so any value I choose is going to be too small for some images and too big for others.

Minimum zoom would be useful for a "set it and forget it" choice while percentage of canvas size would be useful for fine-tuning.

These obviously don't need to have a default binding, and it's ok if the % of canvas size options have to pick the nearest available configured zoom size for media that the user has in their options. I just want these shortcuts available to me.

Dominant language
Python
Stars
3.2k
Forks
207
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hydrusnetwork/hydrus

All issues in hydrusnetwork/hydrus

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.