Open samtay opened 3 months ago
You can explicitly mark an asset as a video with the video function: manganis::mg!(video("assets/animated.webp"))
manganis
should try to detect videos automatically from the content. It looks like the image crate has some limited support for frames. If you are interested in working on this, we could skip re-encoding the image if it has more than one frame.
Problem
When manganis optimizes an animated webp/avif/gif file, it appears to strip the animation to a static image.
Steps To Reproduce
Steps to reproduce the behavior:
const IMG: &str = manganis::mg!("assets/animated.webp");
Expected behavior
The image should be animated.
Environment:
0.3.0-alpha.1
rustc 1.80.1
]web
,fullstack
]Questionnaire