Merge pull request #768 from vangel76/fix-762-animated-webp
#762: import animated WebP as footage with its frames # Conflicts: # docs/file-format-parity.md
This commit is contained in:
@@ -77,6 +77,12 @@ pub fn probe_bytes(path: &str, bytes: Arc<[u8]>) -> Result<Footage> {
|
||||
{
|
||||
return Ok(f);
|
||||
}
|
||||
// So is an animated WebP; a still WebP stays a still.
|
||||
if fmt == image::ImageFormat::WebP
|
||||
&& let Some(f) = crate::webp_anim::probe(path, &bytes)
|
||||
{
|
||||
return Ok(f);
|
||||
}
|
||||
return probe_still_bytes(path, &bytes, fmt);
|
||||
}
|
||||
let name = Path::new(path).file_name().map(|n| n.to_string_lossy().to_string()).unwrap_or_else(|| path.to_string());
|
||||
|
||||
Reference in New Issue
Block a user