11# Convert
22
3- > Auto-generated documentation for [ tstickers.convert] ( ../../../tstickers/convert.py ) module.
3+ [ Tstickers Index] ( ../README.md#tstickers-index ) /
4+ [ Tstickers] ( ./index.md#tstickers ) /
5+ Convert
46
5- Sticker convert functions used by the downloader .
7+ > Auto-generated documentation for [ tstickers.convert ] ( ../../../tstickers/convert.py ) module .
68
7- - [ Tstickers ] ( ../README.md#tstickers-index ) / [ Modules ] ( ../MODULES.md#tstickers-modules ) / [ Tstickers ] ( index.md#tstickers ) / Convert
8- - [ assureDirExists] ( #assuredirexists )
9- - [ convertTgs] ( #converttgs )
10- - [ convertWebp] ( #convertwebp )
11- - [ convertWithPIL] ( #convertwithpil )
9+ - [ Convert ] ( #convert )
10+ - [ assureDirExists] ( #assuredirexists )
11+ - [ convertTgs] ( #converttgs )
12+ - [ convertWebp] ( #convertwebp )
13+ - [ convertWithPIL] ( #convertwithpil )
1214
1315## assureDirExists
1416
15- [[ find in source code]] ( ../../../tstickers/convert.py#L13 )
16-
17- ``` python
18- def assureDirExists (root : Path, directory : Path | str ) -> Path:
19- ```
17+ [ Show source in convert.py:13] ( ../../../tstickers/convert.py#L13 )
2018
2119make the dir if not exists
2220
@@ -29,19 +27,19 @@ make the dir if not exists
2927
3028- ` Path ` - the full path
3129
32- ## convertTgs
33-
34- [[ find in source code]] ( ../../../tstickers/convert.py#L72 )
30+ #### Signature
3531
3632``` python
37- def convertTgs (
38- swd : Path,
39- threads : int = 4 ,
40- frameSkip : int = 1 ,
41- scale : float = 1 ,
42- ) -> int :
33+ def assureDirExists (root : Path, directory : Path | str ) -> Path:
34+ ...
4335```
4436
37+
38+
39+ ## convertTgs
40+
41+ [ Show source in convert.py:72] ( ../../../tstickers/convert.py#L72 )
42+
4543Convert animated stickers to webp, gif and png
4644
4745#### Arguments
@@ -57,14 +55,19 @@ for optimisation with a quality trade-off. Defaults to 1.
5755
5856- ` int ` - number of stickers successfully converted
5957
60- ## convertWebp
61-
62- [[ find in source code]] ( ../../../tstickers/convert.py#L44 )
58+ #### Signature
6359
6460``` python
65- def convertWebp (swd : Path, threads : int = 4 ) -> int :
61+ def convertTgs (swd : Path, threads : int = 4 , frameSkip : int = 1 , scale : float = 1 ) -> int :
62+ ...
6663```
6764
65+
66+
67+ ## convertWebp
68+
69+ [ Show source in convert.py:44] ( ../../../tstickers/convert.py#L44 )
70+
6871Convert static stickers to png and gif
6972
7073#### Arguments
@@ -76,14 +79,19 @@ Convert static stickers to png and gif
7679
7780- ` int ` - number of stickers successfully converted
7881
79- ## convertWithPIL
80-
81- [[ find in source code]] ( ../../../tstickers/convert.py#L27 )
82+ #### Signature
8283
8384``` python
84- def convertWithPIL (inputFile : str ) -> str :
85+ def convertWebp (swd : Path, threads : int = 4 ) -> int :
86+ ...
8587```
8688
89+
90+
91+ ## convertWithPIL
92+
93+ [ Show source in convert.py:27] ( ../../../tstickers/convert.py#L27 )
94+
8795Convert the webp file to png
8896
8997#### Arguments
@@ -93,3 +101,12 @@ Convert the webp file to png
93101#### Returns
94102
95103- ` str ` - path to input file
104+
105+ #### Signature
106+
107+ ``` python
108+ def convertWithPIL (inputFile : str ) -> str :
109+ ...
110+ ```
111+
112+
0 commit comments