microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
109.52k stars 6.45k forks source link

[Peek] Allow us to zoom in/out on previews #32111

Open cow1337killer3 opened 5 months ago

cow1337killer3 commented 5 months ago

Description of the new feature / enhancement

Currently, image previews are displayed pixel-to-pixel and video previews are stretched to fit the Peek window. I think this is a good default, but it'd be great to be able to zoom in/out of both using the mousewheel. And what would be even better, would be having the Peek window automatically increase/decrease in size as we do it.

Scenario when this would be used?

This would be great for everyone, and it's especially needed for those with large resolution monitors, or people who work with graphics/UI design who need to examine small images all the time.

Supporting information

No response

github-actions[bot] commented 5 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

htcfreek commented 5 months ago

@dzeng21 Feel free to open a PR. Your contribution is welcome. Thank you for your work on this.

If you have any questions don't hesitate to ask them?

ethanfangg commented 5 months ago

@dzeng21 Hey! I'm one of the PowerToys internal folks (alongside @crutkas).

I like introducing the ability to zoom in or out of the Peek window (with both "Ctrl + mouse scroll" and also trackpad pinch/un-pinch gestures). I don't think this should also resize the window though.

It looks like this functionality does exist for some file types (i.e. pdfs), but certainly not all. Maybe a contribution here could be scoped to getting this to work for images (& other similar file types)? Thoughts?

ethanfangg commented 4 months ago

Hey @dzeng21, I think the first step is to clearly define a list of goals & non-goals here.

Here's a potential start that you can feel free to workshop...

Goals

Non Goals

Important Definitions & Interactions

Note: Want to keep consistent with standards of interaction found on Figma & other OS's (zoom & scroll).