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 decoder error #1930

Closed
xxaier opened this issue May 16, 2023 · 1 comment · Fixed by #2373
Closed

avif decoder error #1930

xxaier opened this issue May 16, 2023 · 1 comment · Fixed by #2373

Comments

@xxaier
Copy link

xxaier commented May 16, 2023

this avif 1.avif.zip

image::guess_format is UnsupportedError

with file header[3] == 24

[src/lib.rs:46] &format = Avif
[src/lib.rs:53] &bin[..12] = [
0,
0,
0,
24,
102,
116,
121,
112,
97,
118,
105,
102,
]
[src/lib.rs:54] b"\0\0\0\x1cftypavif" = [
0,
0,
0,
28,
102,
116,
121,
112,
97,
118,
105,
102,
]

avif decoder error
image

[src/lib.rs:55] image::guess_format(bin) = Err(
Unsupported(
UnsupportedError {
format: Unknown,
kind: Format(
Unknown,
),
},
),
)
✘ [fail]: img → jpg Rejected promise returned by test

img → jpg

Rejected promise returned by test. Reason:

Error {
code: 'GenericFailure',
message: 'The image format could not be determined',
}

@awxkee
Copy link
Contributor

awxkee commented Nov 2, 2024

@fintelia After #2373 changes everything works, should I set close flag to this in PR?

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

Successfully merging a pull request may close this issue.

3 participants