python-lottie  0.6.10+dev2509936
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.exporters.gif Namespace Reference

Functions

def export_gif (animation, fp, dpi=96, skip_frames=1)
 
def export_webp (animation, fp, dpi=96, lossless=False, quality=80, method=0, skip_frames=1)
 
def export_tiff (animation, fp, dpi=96)
 

Function Documentation

◆ export_gif()

def lottie.exporters.gif.export_gif (   animation,
  fp,
  dpi = 96,
  skip_frames = 1 
)
Gif export

Note that it's a bit slow.

Definition at line 30 of file gif.py.

◆ export_tiff()

def lottie.exporters.gif.export_tiff (   animation,
  fp,
  dpi = 96 
)
Export TIFF

Definition at line 110 of file gif.py.

◆ export_webp()

def lottie.exporters.gif.export_webp (   animation,
  fp,
  dpi = 96,
  lossless = False,
  quality = 80,
  method = 0,
  skip_frames = 1 
)
Export WebP

See https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html#webp

Definition at line 71 of file gif.py.