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

Avif encoder not available #1671

Open
robert-mihalache opened this issue May 17, 2024 · 1 comment
Open

Avif encoder not available #1671

robert-mihalache opened this issue May 17, 2024 · 1 comment

Comments

@robert-mihalache
Copy link

Summary of your issue

When calling EmEncode with .avif extension an exception is being generated, informing the encoder is not available. OpenCV 4.9 documentation mentions support for this format.

Environment

Write your environment.

OpenCV4Sharp 4.9
Windows 11 x64
Visual Studio 2022 17.9.7

Write here

Example code:

private readonly int[] _parametersAvif = [512, 60];
Cv2.ImEncode(".avif", _image, out byte[] buffer, _parametersAvif);

Output:

OpenCvSharp.OpenCVException: 'could not find encoder for the specified extension'

What did you intend to be?

Return the buffer containing the encoded image

@robert-mihalache
Copy link
Author

Is anyone looking into this?

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