image icon indicating copy to clipboard operation
image copied to clipboard

avif decoder error

Open xxaier opened this issue 1 year ago • 0 comments

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', }

xxaier avatar May 16 '23 08:05 xxaier