Skip to content

Latest commit

 

History

History
210 lines (127 loc) · 4.48 KB

File metadata and controls

210 lines (127 loc) · 4.48 KB

Pylottie

Pylottie Index / Pylottie

Auto-generated documentation for pylottie module.

convertLottie2ALL

Show source in init.py:19

Convert to gif and webp

Arguments


  • fileName str - file path of the lottie file
  • newFileName str - name of the file to write (omit file ext)
  • quality int, optional - Quality of the returned sequence. Defaults to 1.

Signature

def convertLottie2ALL(fileName: str, newFileName: str, quality: int = 1): ...

convertLottie2GIF

Show source in init.py:32

Convert to gif

Arguments


  • fileName str - file path of the lottie file
  • newFileName str - name of the file to write
  • quality int, optional - Quality of the returned sequence. Defaults to 1.

Signature

def convertLottie2GIF(fileName: str, newFileName: str, quality: int = 1): ...

convertLottie2Webp

Show source in init.py:45

Convert to webp

Arguments


  • fileName str - file path of the lottie file
  • newFileName str - name of the file to write
  • quality int, optional - Quality of the returned sequence. Defaults to 1.

Signature

def convertLottie2Webp(fileName: str, newFileName: str, quality: int = 1): ...

convertLotties2PIL

Show source in init.py:149

Convert list of lottie files to a list of images with a duration.

Arguments


  • fileNames list[str] - list of file paths of the lottie files
  • quality int, optional - Quality of the returned sequence. Defaults to 1.

Returns


  • list[tuple[list[Image], float]] - pil images to write to gif/ webp and duration

Signature

def convertLotties2PIL(
    fileNames: list[str], quality: int = 1
) -> list[tuple[list[Image.Image], float]]: ...

convertMultLottie2ALL

Show source in init.py:58

Convert to gif and webp

Arguments


  • fileNames list[str] - list of file path to the lottie files
  • newFileNames list[str] - name of the files to write (omit file ext)
  • quality int, optional - Quality of the returned sequence. Defaults to 1.

Signature

def convertMultLottie2ALL(
    fileNames: list[str], newFileNames: list[str], quality: int = 1
): ...

convertMultLottie2GIF

Show source in init.py:92

Convert to gif

Arguments


  • fileNames list[str] - list of file path to the lottie files
  • newFileNames list[str] - name of the files to write
  • quality int, optional - Quality of the returned sequence. Defaults to 1.

Signature

def convertMultLottie2GIF(
    fileNames: list[str], newFileNames: list[str], quality: int = 1
): ...

convertMultLottie2Webp

Show source in init.py:118

Convert to webp

Arguments


  • fileNames list[str] - list of file path to the lottie files
  • newFileNames list[str] - name of the files to write
  • quality int, optional - Quality of the returned sequence. Defaults to 1.

Signature

def convertMultLottie2Webp(
    fileNames: list[str], newFileNames: list[str], quality: int = 1
): ...

recordLotties

Show source in init.py:192

Record the lottie data to a set of images

Arguments


  • lottieData str - lottie data as string
  • quality int, optional - Quality of the returned sequence.

Returns


  • list[list[int]] - duration and number of frames

Signature

def recordLotties(lottieData: list[str], quality: int) -> list[list[int]]: ...

recordSingleLottie

Show source in init.py:224

Signature

def recordSingleLottie(browser, lottieDataInstance, quality, index) -> list[int]: ...