Unigram icon indicating copy to clipboard operation
Unigram copied to clipboard

Add HEIC file format as allowed for pictures upload

Open xperiandri opened this issue 5 years ago • 6 comments

xperiandri avatar Jan 28 '20 11:01 xperiandri

I’m not sure if Windows has native HEIC decoder?

FrayxRulez avatar Jan 28 '20 11:01 FrayxRulez

It has

xperiandri avatar Jan 28 '20 11:01 xperiandri

https://www.microsoft.com/store/productId/9PMMSR1CGPWG

xperiandri avatar Jan 28 '20 11:01 xperiandri

I don’t consider an additional app to install native tho. Still it can be used from UWP apps: https://docs.microsoft.com/en-us/uwp/api/windows.graphics.imaging.bitmapdecoder.heifdecoderid

The problem is that there’s no way to determine if the app is actually installed, apart from specific error handling while trying to decode it.

Can I have a sample file?

FrayxRulez avatar Jan 28 '20 11:01 FrayxRulez

Well, might be worth adding a comment here. The problem is that Windows doesn't natively support HEIC codec, consequently it doesn't provide some metadata that's necessary to properly process and send pictures, and this is width and height of the image.

FrayxRulez avatar Oct 10 '20 09:10 FrayxRulez

Do you mean that you cannot read width and height from HEIC without an additional library?

xperiandri avatar Oct 12 '20 16:10 xperiandri