microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
107.01k stars 6.31k forks source link

Sometimes Peek image previews are blurry #33496

Open DNin01 opened 1 week ago

DNin01 commented 1 week ago

Microsoft PowerToys version

v0.80.1

Installation method

PowerToys auto-update, Microsoft Store

Running as admin

No

Area(s) with issue?

Peek

Steps to reproduce

  1. Enable the Peek module
  2. Navigate to a picture file (could be a PNG, JPG, etc.) and activate Peek on it (press Ctrl+Space)

✔️ Expected Behavior

The preview should be clear and sharp if it can fit within the Peek window.

❌ Actual Behavior

Sometimes the preview is slightly blurry. I think it's because the Peek window is having its size miscalculated, making the previewed image shrink to fit.

If you maximize or increase the size of the window (usually vertically), it looks fine.

Now, of course, larger images that can't fit in the Peek window will have this issue, but I have also seen most medium-sized pictures that touch the top or bottom edges of the Peek window have this issue. Here's a good example: https://github.com/microsoft/PowerToys/blob/main/doc/images/launcher/plugins/program.png?raw=true

https://github.com/microsoft/PowerToys/assets/106490990/3d631b19-edf4-4b37-95f0-800a670bf3bb

If you look very closely at the video, there are lines on the left and right edges of the preview. That's the background.

Here, and pretty much every time, the window's height is one pixel less than it should be.

Exactly how the blurring shows up might depend on the graphics components of your device.

Other Software

No response

github-actions[bot] commented 1 week 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!

Closed similar issues:

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