pub fn save(path: impl AsRef<Path>, frame: &Frame) -> Result<(), Error>Expand description
Encode a frame to path, choosing the format from the extension.
png and webp write the RGBA8 pixels directly; jpeg has no alpha, so the colour is converted to RGB8 first.
ยงErrors
Fails when the extension names no supported format or the encoder fails.