Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reading WebP and HEIC image formats natively #8301

Open
gau-nernst opened this issue Mar 6, 2024 · 0 comments
Open

Support reading WebP and HEIC image formats natively #8301

gau-nernst opened this issue Mar 6, 2024 · 0 comments

Comments

@gau-nernst
Copy link
Contributor

馃殌 The feature

WebP is very popular for images from the web (11.7%). HEIC is gaining popularity for images captured by phones (thanks Apple. I know some Android phones can take HEIC images also). Able to read these images directly without conversion would be beneficial for the users, especially to avoid loss of image quality.

Writing WebP and HEIC, though good to have, is not really important. But if we are to link against existing WebP/HEIC libraries, I figure we would get both decode and encode capabilities.

Note: HEIC is just a container format. It can contain various formats. For example, photos taken by my iPhone 15 is HEIF/AVIF

Motivation, pitch

When collecting my own data, I often come across WebP (from the internet) and HEIC (from phones).

Alternatives

Pillow can read (and write) WebP. To read/write HEIC with Pillow, users have to install a 3rd-party extension, like this one: https://github.com/bigcat88/pillow_heif

Additional context

libwebp: https://developers.google.com/speed/webp/download
libheif: https://github.com/strukturag/libheif

It seems like there can potentially be licensing issue for HEIF. I'm not too familiar with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant