Pylottie Index / Pylottie
Auto-generated documentation for pylottie module.
Convert to gif and webp
fileName
str - file path of the lottie filenewFileName
str - name of the file to write (omit file ext)quality
int, optional - Quality of the returned sequence. Defaults to 1.
def convertLottie2ALL(fileName: str, newFileName: str, quality: int = 1): ...
Convert to gif
fileName
str - file path of the lottie filenewFileName
str - name of the file to writequality
int, optional - Quality of the returned sequence. Defaults to 1.
def convertLottie2GIF(fileName: str, newFileName: str, quality: int = 1): ...
Convert to webp
fileName
str - file path of the lottie filenewFileName
str - name of the file to writequality
int, 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.
fileNames
list[str] - list of file paths of the lottie filesquality
int, 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
fileNames
list[str] - list of file path to the lottie filesnewFileNames
list[str] - name of the files to write (omit file ext)quality
int, optional - Quality of the returned sequence. Defaults to 1.
def convertMultLottie2ALL(
fileNames: list[str], newFileNames: list[str], quality: int = 1
): ...
Convert to gif
fileNames
list[str] - list of file path to the lottie filesnewFileNames
list[str] - name of the files to writequality
int, optional - Quality of the returned sequence. Defaults to 1.
def convertMultLottie2GIF(
fileNames: list[str], newFileNames: list[str], quality: int = 1
): ...
Convert to webp
fileNames
list[str] - list of file path to the lottie filesnewFileNames
list[str] - name of the files to writequality
int, 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
lottieData
str - lottie data as stringquality
int, 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]: ...