Closed kolserdav closed 1 year ago
I use this method https://github.com/kolserdav/ravif-js/blob/7ebd8539454ecd67c031f0aa251c21bf1539cbfd/src/lib.rs#L49 to encode images into .avif. The first four bytes of the resulting image are [0,0,0,24]. The remaining bytes are as they should be for file .avif. As a result, load_image can no longer determine the type of this .avif file.
load_image
It turns out, as I see now - it is provided. Just had to use the avif feature in load_image crate.
avif
I use this method https://github.com/kolserdav/ravif-js/blob/7ebd8539454ecd67c031f0aa251c21bf1539cbfd/src/lib.rs#L49 to encode images into .avif. The first four bytes of the resulting image are [0,0,0,24]. The remaining bytes are as they should be for file .avif. As a result,
load_image
can no longer determine the type of this .avif file.