Skip to content

Suggestion: Image scaling via keyboard #1066

@WRPSoft

Description

@WRPSoft

I'm currently customizing Ditto to suit my own needs. Some of this is very specific and tailored to my workflow (like embedding a ShellExecute Command for calling external tools via ChaiScript).

Since I don't want to overwhelm this project with my specific changes, I'm asking if there's any interest in some of these features.

ImageViewer (Image Preview via F3):

1.) General Scaling: I've modified the scaling (option Scaleimagestofitwindow) so that the height is now also taken into account, and the image in the preview is scaled accordingly to the imageviewer window size.

2.) Scaling via Keyboard: Since I prefer to control all my productivity tools entirely via the keyboard, I've added the following keyboard functions to the ImageViewer ('*', '+', '.' keys on the numeric keypad):

  • '+': Zoom In
  • '-': Zoom Out
  • '*': Fit Image to Window
  • CTRL + '*': Size Window To Content
  • SHIFT + CTRL + '*': Full Window Size Mode

If there's interest, I'll incorporate this into my fork and possibly submit a pull request; otherwise, it will remain in my own version for now.

Here is a small illustration:
https://www.hrmprofil.de/Down/Ditto_ImageScalingViaKeyboard.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions