Shortcut(s) for minimum zoom, zoom to percentage of canvas size
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 45/100
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
I would like the following shortcuts for media viewers:
- Minimum zooms (counterparts to max zoom shortcuts that already exist)
zoom: min: set the zoom percent to the minimum the user has set in their options (counterpart tozoom: max.)zoom: min with forced media viewer center: the above, but with a forced re-centering of the media, obviously.zoom: switch between 100% and min zoom: counterpart toswitch between 100% and max zoomzoom: switch between canvas fit and min zoom: counterpart toswitch between canvas fit and max zoom
- Percentage of canvas size zooms (supplements to set to percentage and canvas fit options)
-
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 fitbut as if the canvas was 1080x720. If the user inputs 100% for this, it will be the same as if they usedzoom:canvas fit. -
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hydrusnetwork/hydrus
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
hydrusnetwork/hydrus#2091 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
hydrusnetwork/hydrus#2013 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 50/100
hydrusnetwork/hydrus#2090 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 65/100
hydrusnetwork/hydrus#2089 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
hydrusnetwork/hydrus#2087 · 1 comment ·
All issues in hydrusnetwork/hydrus
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100