66
77The `convertAnimated` function takes the following parameters:
88 - swd (Path): The sticker working directory (downloads/packName).
9- - _threads (int, optional): The number of threads to pass to ThreadPoolExecutor .
9+ - _threads (int, optional): The number of threads to pass to ProcessPoolExecutor .
1010 Defaults to 4.
1111 - frameSkip (int, optional): Skip n number of frames in the interest of
1212 optimization with a quality trade-off. Defaults to 1.
@@ -57,7 +57,7 @@ def convertAnimated(
5757 Args:
5858 ----
5959 swd (Path): the sticker working directory (downloads/packName)
60- threads (int, optional): number of threads to pass to ThreadPoolExecutor . Defaults
60+ threads (int, optional): number of threads to pass to ProcessPoolExecutor . Defaults
6161 to number of cores/ logical processors.
6262 frameSkip (int, optional): skip n number of frames in the interest of
6363 optimisation with a quality trade-off. Defaults to 1.
@@ -73,7 +73,7 @@ def convertAnimated(
7373
7474 fps = [None , 30 , 20 , 15 , 12 ][min (4 , max (0 , frameSkip ))]
7575
76- with concurrent .futures .ThreadPoolExecutor (max_workers = threads ) as executor :
76+ with concurrent .futures .ProcessPoolExecutor (max_workers = threads ) as executor :
7777 # Using list comprehension to submit tasks to the executor
7878 future_to_variable = {
7979 executor .submit (convert_single_tgs , stckr , fps , scale ): stckr
0 commit comments