Skip to content

Commit 449b613

Browse files
committed
rel 2024.1.2
1 parent 87122c8 commit 449b613

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sticker*.txt
66
sorted
77
perf.py
88
/*.tgs
9-
/*.gif
9+
/test_*
1010

1111
poetry.lock
1212

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All major and minor version changes will be documented in this file. Details of
44
patch-level version changes can be found in [commit messages](../../commits/master).
55

6+
## 2024.1.2 - 2024/03/25
7+
8+
- revert 'fix'
9+
610
## 2024.1.1 - 2024/03/24
711

812
- fix `convert_rlottie_python.py`

documentation/reference/tstickers/convert_rlottie_python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Convert animated stickers to webp, gif and png.
1818

1919
----
2020
- `swd` *Path* - the sticker working directory (downloads/packName)
21-
- `threads` *int, optional* - number of threads to pass to ThreadPoolExecutor. Defaults
21+
- `threads` *int, optional* - number of threads to pass to ProcessPoolExecutor. Defaults
2222
to number of cores/ logical processors.
2323
- `frameSkip` *int, optional* - skip n number of frames in the interest of
2424
optimisation with a quality trade-off. Defaults to 1.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tstickers"
3-
version = "2024.1.1"
3+
version = "2024.1.2"
44
license = "mit"
55
description = "Download sticker packs from Telegram"
66
authors = ["FredHappyface"]

tstickers/convert_rlottie_python.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
The `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

Comments
 (0)