microsoft / PowerToys

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

[Image Resizer] Better support for HEiC image formats #1934

Open stewartmhome1 opened 4 years ago

stewartmhome1 commented 4 years ago

Can HEIC images be catered for in ImageResizer

crutkas commented 4 years ago

@bricelam I know you were looking into this Before. Ideas?

bricelam commented 4 years ago

AFAIK, it should work if you have a WIC codec installed. Needs #1929 for the best experience

crutkas commented 4 years ago

Maybe we prompt for “you need to install ....” for heic stuff If they don’t.

drew-hoffman commented 4 years ago

I came here looking for heic support too. So many web services don't support it yet, it would be great if I could right click -> resize it into a JPEG file in one click.

I have the Microsoft HEIF codec installed already, and can open the images fine in Paint and Preview, but I don't see any shell support for resizing.

bricelam commented 4 years ago

@drew-hoffman One trick you can use is to select both the HEiC image and a dummy JPEG image. This should allow the context menu to show up.

crutkas commented 4 years ago

I think we can do better with HEIC, I think it is

  1. if HEIC is installed, enabled for right click
  2. In Settings, detect if file system has any HEIC files and if HEIC ext not is installed.
    1. Add prompt to suggest to install if this case is met.
stamminator commented 4 years ago

I used @bricelam's trick to resize one HEIC file and one JPG file, but the HEIC failed.

image

I already have the HEIF Image Extensions "app" installed from the store, which I assume means I have the necessary codec.

weyCC81 commented 2 years ago

Please add support for HEIC, the resize workaround with a dummy file did not work fully as the files is corrupted afterwards.

bricelam commented 2 years ago

I dug into the Object reference not set to an instance of an object error once, and it appears to be related to a bug in WPF when it tries to initialize a store-installed codec. I think I "submitted feedback" somewhere for it, but it probably just got lost in the void.

Porting to WinUI/WinAppSDK (#1053) would be one way work around the issue