Pylottie Index / Pylottie
Auto-generated documentation for pylottie module.
Convert to gif and webp
fileNamestr - file path of the lottie filenewFileNamestr - name of the file to write (omit file ext)qualityint, optional - Quality of the returned sequence. Defaults to 1.
def convertLottie2ALL(fileName: str, newFileName: str, quality: int = 1): ...Convert to gif
fileNamestr - file path of the lottie filenewFileNamestr - name of the file to writequalityint, optional - Quality of the returned sequence. Defaults to 1.
def convertLottie2GIF(fileName: str, newFileName: str, quality: int = 1): ...Convert to webp
fileNamestr - file path of the lottie filenewFileNamestr - name of the file to writequalityint, optional - Quality of the returned sequence. Defaults to 1.
def convertLottie2Webp(fileName: str, newFileName: str, quality: int = 1): ...Convert list of lottie files to a list of images with a duration.
fileNameslist[str] - list of file paths of the lottie filesqualityint, optional - Quality of the returned sequence. Defaults to 1.
list[tuple[list[Image],float]] - pil images to write to gif/ webp and duration
def convertLotties2PIL(
fileNames: list[str], quality: int = 1
) -> list[tuple[list[Image.Image], float]]: ...Convert to gif and webp
fileNameslist[str] - list of file path to the lottie filesnewFileNameslist[str] - name of the files to write (omit file ext)qualityint, optional - Quality of the returned sequence. Defaults to 1.
def convertMultLottie2ALL(
fileNames: list[str], newFileNames: list[str], quality: int = 1
): ...Convert to gif
fileNameslist[str] - list of file path to the lottie filesnewFileNameslist[str] - name of the files to writequalityint, optional - Quality of the returned sequence. Defaults to 1.
def convertMultLottie2GIF(
fileNames: list[str], newFileNames: list[str], quality: int = 1
): ...Convert to webp
fileNameslist[str] - list of file path to the lottie filesnewFileNameslist[str] - name of the files to writequalityint, optional - Quality of the returned sequence. Defaults to 1.
def convertMultLottie2Webp(
fileNames: list[str], newFileNames: list[str], quality: int = 1
): ...Record the lottie data to a set of images
lottieDatastr - lottie data as stringqualityint, optional - Quality of the returned sequence.
list[list[int]]- duration and number of frames
def recordLotties(lottieData: list[str], quality: int) -> list[list[int]]: ...def recordSingleLottie(browser, lottieDataInstance, quality, index) -> list[int]: ...