Tstickers Index / Tstickers / Convert Rlottie Python
Auto-generated documentation for tstickers.convert_rlottie_python module.
Show source in convert_rlottie_python.py:59
Convert animated stickers, over a number of threads, at a given framerate, scale and to a set of formats.
swdPath - The sticker working directory (e.g., downloads/packName).threadsint - Number of threads for ProcessPoolExecutor (default: number of logical processors).fpsint - framerate of the converted sticker, affecting optimization and quality (default: 20)scalefloat - Scale factor for up/downscaling images, affecting optimization and quality (default: 1). :param set[str]|None formats: Set of formats to convert telegram tgs stickers to (default: {"gif", "webp", "apng"})
Type: int Number of stickers successfully converted.
def convertAnimated(
swd: Path,
threads: int = multiprocessing.cpu_count(),
fps: int = 20,
scale: float = 1,
formats: set[str] | None = None,
) -> int: ...Show source in convert_rlottie_python.py:18
Convert a single tgs file.
stckrPath - Path to the stickerfpsint - framerate of the converted sticker, affecting optimization and quality (default: 20)scalefloat - Scale factor for up/downscaling images, affecting optimization and quality (default: 1). :param set[str]|None formats: Set of formats to convert telegram tgs stickers to (default: {"gif", "webp", "apng"})
Type: int 1 if success
def convert_single_tgs(
stckr: Path, fps: int, scale: float = 1.0, formats: set[str] | None = None
) -> int: ...