microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
110.02k stars 6.48k forks source link

[Peek] Webp Support #26141

Closed revilowaldow closed 5 months ago

revilowaldow commented 1 year ago

Description of the new feature / enhancement

Support for the webp image format in Peek, Windows has been pretty poor on this format in the past. With so much focus on dev/powerusers who are popping open code, it's a shame to not see support for web optimized image files.

Scenario when this would be used?

Viewing webp format images with peek particularly in source code/dev environements. As webp is space optimized it should be load quickly but be wary of the decompression overhead if not taking advantage of the 4-byte memory alignment of the format.

Supporting information

We can do better than this. image

Darkace01 commented 1 year ago

I'm so excited about the possibility of having integrated support for WebP and other new standards in Windows! This would make it so much easier and faster to view different types of images without having to install extra apps. Imagine how much space and time we could save by using WebP, which offers better compression and quality than JPEG or PNG. I think this would be a great improvement in user experience and satisfaction. Don't you agree?

rdwz commented 1 year ago

I would love to see WebP featured

https://github.com/webmproject/libwebp

crutkas commented 1 year ago

Wonder if webview2 could be the solution for webp

nlov commented 1 year ago

This would be a huge quality of life improvement when screen sharing with my friends and family over video chat, going through folders and discussing pictures on the fly without having to open up the Photos app, since that can take you to a different Windows virtual desktop on current Photos if it's already open there.

Reminder that any use of libwebp should use a very recent fixed version to account for 2023 09 21 The WebP 0day | Hacker News recently; may need to coordinate with the Photos app team since the Photos app supports webp.

davidegiacometti commented 7 months ago

@crutkas seems that WinUI3 is already able to render .webp images: I have just added the format to the supported files for the image previewer.

image

Tested on Windows 10 22H2: I think the Webp Image Extensions package is required.

I think the same is for HEIF and HEVC. Pretty sure that after installing the HEVC payed extension Peek started to reproduce HEVC videos 😃

jaimecbernardo commented 5 months ago

This has been worked on during the 0.80 release cycle. Please update to the latest release: https://github.com/microsoft/PowerToys/releases