pub fn write(
path: &Path,
ext: &str,
frames: &[WriteFrame<'_>],
) -> Result<(), String>Expand description
Writes frames to path as the ImageIO format of ext (macOS can
write AVIF, HEIC and HEIF sequences, not AVIF sequences or JPEG XL).
Several frames with delays make a HEIF sequence.