pub fn convert<W: Write>(
    player: Animation,
    bg: Color,
    out: W
) -> Result<(), EncodingError>
👎 Deprecated:

Use lottieconv crate instead

Expand description

Convert a lottie animation to a GIF file.

This is a lossy operation. GIF does not support full alpha channel. Even if you enable the alpha flag for background color, the rgb value is required. This is because semi-transparent pixels will be converted to non-transparent pixels, adding onto the background color. Only fully transparent pixels will remain transparent.