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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reading image using WIC on Windows #529

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tongyuantongyu
Copy link
Contributor

Add support to use WIC API to support reading from any image formats Windows supported, including JPEG, PNG (these two are not used by us), TIFF, BMP, GIF and some others. It's also extensible so if with addon Windows is able to open it we are also able to read from it. (which means we also supports reading from WEBP, HEIF and even AVIF ourselves)

This PR only supports decoding, and only reads the first frame from an input file. In the future we may explore encoding using WIC to get rid of complicated dependency configuration of libjpeg and libpng on Windows, and also multiple-frame input support.

apps/shared/avifwic.c Outdated Show resolved Hide resolved
@suphamster
Copy link

Any plans to finally add this in avifenc since for now it's not possible directly convert webp to avif 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

Successfully merging this pull request may close these issues.

3 participants