microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
110.89k stars 6.53k forks source link

[Image Resizer] Show "Resize pictures" on all supported formats #1929

Open bricelam opened 4 years ago

bricelam commented 4 years ago

Resize pictures should appear when right-clicking on any image format with a corresponding WIC codec. This would mean that installing things like following would make it appear.

Ideally the formats would also appear in the fallback encoder list.

Jay-o-Way commented 3 years ago

Just to be clear: Do people need to install a plug-in/codec to be able to use things like webp? If so, this might be worth mentioning in the docs or even the UI.

scarrrr316 commented 2 years ago

I followed the step and installed all plugin mentioned still not working with webp files https://github.com/microsoft/PowerToys/issues/16776#issue-1159442207 any suggestion?

bricelam commented 2 years ago

Hmm, someone should investigate why this line isn't working correctly.

https://github.com/microsoft/PowerToys/blob/34e4e7e5bd977149f0e324caa6a59e84c02b2fe3/src/modules/imageresizer/dll/ContextMenuHandler.cpp#L88

It appears to be registered as an image.

REG QUERY HKCR\.webp /v PerceivedType
HKEY_CLASSES_ROOT\.webp
    PerceivedType    REG_SZ    image
bricelam commented 2 years ago

Of course, that might just be the tip of the iceberg. I seem to remember some "not initialized" errors when WPF tries to use a store-installed codec.

scarrrr316 commented 2 years ago

image seems that it has registered as an image, still not working with webp files

JonnyBoy-101 commented 2 years ago

I followed the step and installed all plugin mentioned still not working with webp files #16776 (comment) any suggestion?

Mine doesn't work with HEIC files either. Still trying to find a fix other then the extra step of converting HEIC to JPG. Searching the internet for any solutions. :)

yaner-here commented 1 month ago

Installing extension from Microsoft Store doesn't works for me. In fact, Poweytoys doesn't register these image formats at all.

https://github.com/microsoft/PowerToys/blob/9591d75d4fd9c1e7db1187bdb4eab4948f23505b/src/modules/imageresizer/dll/ImageResizerExt.vcxproj.filters#L14 https://github.com/microsoft/PowerToys/blob/9591d75d4fd9c1e7db1187bdb4eab4948f23505b/src/modules/imageresizer/ui/Views/MainWindow.xaml.cs#L41

ShalfeyTakagi commented 2 weeks ago

I accidentally uninstalled my old version (unfortunately don't remember its number...) with which I used to batch resize raw files, and basically used it to convert CR2 to PNG. Installed v0.85.1 today, and when I select a CR2 file, the resize option is nowhere to be found. It appears when I select a PNG/JPG/etc, but not CR2. :( I have the extensions installed. Doesn't seem to help