PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Sometimes Peek image previews are blurry

Open DNin01 opened this issue 1 year ago • 3 comments

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

DNin01 avatar Jun 25 '24 02:06 DNin01

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.

github-actions[bot] avatar Jun 25 '24 02:06 github-actions[bot]

Is this issue still relevant in v0.87? /needinfo

TheJoeFin avatar Dec 19 '24 20:12 TheJoeFin

Is this issue still relevant in v0.87?

Well, yes, I'm on v0.87.1 now but this time the window is too thin both horizontally and vertically, so I have to resize it diagonally by several pixels to get the image to fit at actual size and not be blurry, as you can see here:

https://github.com/user-attachments/assets/5e254148-229a-4017-97c0-975e3415e8f3

This happened with various different image sizes that should've fit.

DNin01 avatar Dec 20 '24 04:12 DNin01