1
1
# Pylottie
2
2
3
- > Auto-generated documentation for [ pylottie] ( ../../../pylottie/__init__.py ) module.
3
+ [ Pylottie Index] ( ../README.md#pylottie-index ) /
4
+ Pylottie
4
5
5
- Support for animated stickers
6
+ > Auto-generated documentation for [ pylottie ] ( ../../../pylottie/__init__.py ) module.
6
7
7
- - [ Pylottie] ( ../README.md #pylottie-index ) / [ Modules ] ( ../MODULES.md#pylottie-modules ) / Pylottie
8
- - [ convertLottie2ALL] ( #convertlottie2all )
9
- - [ convertLottie2GIF] ( #convertlottie2gif )
10
- - [ convertLottie2Webp] ( #convertlottie2webp )
11
- - [ convertLotties2PIL] ( #convertlotties2pil )
12
- - [ convertMultLottie2ALL] ( #convertmultlottie2all )
13
- - [ convertMultLottie2GIF] ( #convertmultlottie2gif )
14
- - [ convertMultLottie2Webp] ( #convertmultlottie2webp )
15
- - [ recordLotties] ( #recordlotties )
16
- - [ recordSingleLottie] ( #recordsinglelottie )
8
+ - [ Pylottie] ( #pylottie )
9
+ - [ convertLottie2ALL] ( #convertlottie2all )
10
+ - [ convertLottie2GIF] ( #convertlottie2gif )
11
+ - [ convertLottie2Webp] ( #convertlottie2webp )
12
+ - [ convertLotties2PIL] ( #convertlotties2pil )
13
+ - [ convertMultLottie2ALL] ( #convertmultlottie2all )
14
+ - [ convertMultLottie2GIF] ( #convertmultlottie2gif )
15
+ - [ convertMultLottie2Webp] ( #convertmultlottie2webp )
16
+ - [ recordLotties] ( #recordlotties )
17
+ - [ recordSingleLottie] ( #recordsinglelottie )
17
18
18
19
## convertLottie2ALL
19
20
20
- [[ find in source code]] ( ../../../pylottie/__init__.py#L19 )
21
-
22
- ``` python
23
- def convertLottie2ALL (fileName : str , newFileName : str , quality : int = 1 ):
24
- ```
21
+ [ Show source in __ init__ .py:19] ( ../../../pylottie/__init__.py#L19 )
25
22
26
23
Convert to gif and webp
27
24
@@ -31,14 +28,19 @@ Convert to gif and webp
31
28
- ` newFileName ` * str* - name of the file to write (omit file ext)
32
29
- ` quality ` * int, optional* - Quality of the returned sequence. Defaults to 1.
33
30
34
- ## convertLottie2GIF
35
-
36
- [[ find in source code]] ( ../../../pylottie/__init__.py#L30 )
31
+ #### Signature
37
32
38
33
``` python
39
- def convertLottie2GIF (fileName : str , newFileName : str , quality : int = 1 ):
34
+ def convertLottie2ALL (fileName : str , newFileName : str , quality : int = 1 ):
35
+ ...
40
36
```
41
37
38
+
39
+
40
+ ## convertLottie2GIF
41
+
42
+ [ Show source in __ init__ .py:30] ( ../../../pylottie/__init__.py#L30 )
43
+
42
44
Convert to gif
43
45
44
46
#### Arguments
@@ -47,14 +49,19 @@ Convert to gif
47
49
- ` newFileName ` * str* - name of the file to write
48
50
- ` quality ` * int, optional* - Quality of the returned sequence. Defaults to 1.
49
51
50
- ## convertLottie2Webp
51
-
52
- [[ find in source code]] ( ../../../pylottie/__init__.py#L41 )
52
+ #### Signature
53
53
54
54
``` python
55
- def convertLottie2Webp (fileName : str , newFileName : str , quality : int = 1 ):
55
+ def convertLottie2GIF (fileName : str , newFileName : str , quality : int = 1 ):
56
+ ...
56
57
```
57
58
59
+
60
+
61
+ ## convertLottie2Webp
62
+
63
+ [ Show source in __ init__ .py:41] ( ../../../pylottie/__init__.py#L41 )
64
+
58
65
Convert to webp
59
66
60
67
#### Arguments
@@ -63,17 +70,19 @@ Convert to webp
63
70
- ` newFileName ` * str* - name of the file to write
64
71
- ` quality ` * int, optional* - Quality of the returned sequence. Defaults to 1.
65
72
66
- ## convertLotties2PIL
67
-
68
- [[ find in source code]] ( ../../../pylottie/__init__.py#L137 )
73
+ #### Signature
69
74
70
75
``` python
71
- def convertLotties2PIL (
72
- fileNames : list[str ],
73
- quality : int = 1 ,
74
- ) -> list[tuple[list[Image.Image], float ]]:
76
+ def convertLottie2Webp (fileName : str , newFileName : str , quality : int = 1 ):
77
+ ...
75
78
```
76
79
80
+
81
+
82
+ ## convertLotties2PIL
83
+
84
+ [ Show source in __ init__ .py:137] ( ../../../pylottie/__init__.py#L137 )
85
+
77
86
Convert list of lottie files to a list of images with a duration.
78
87
79
88
#### Arguments
@@ -85,18 +94,21 @@ Convert list of lottie files to a list of images with a duration.
85
94
86
95
- ` list[tuple[list[Image], ` * float]] * - pil images to write to gif/ webp and duration
87
96
88
- ## convertMultLottie2ALL
89
-
90
- [[ find in source code]] ( ../../../pylottie/__init__.py#L52 )
97
+ #### Signature
91
98
92
99
``` python
93
- def convertMultLottie2ALL (
94
- fileNames : list[str ],
95
- newFileNames : list[str ],
96
- quality : int = 1 ,
97
- ):
100
+ def convertLotties2PIL (
101
+ fileNames : list[str ], quality : int = 1
102
+ ) -> list[tuple[list[Image.Image], float ]]:
103
+ ...
98
104
```
99
105
106
+
107
+
108
+ ## convertMultLottie2ALL
109
+
110
+ [ Show source in __ init__ .py:52] ( ../../../pylottie/__init__.py#L52 )
111
+
100
112
Convert to gif and webp
101
113
102
114
#### Arguments
@@ -105,18 +117,21 @@ Convert to gif and webp
105
117
- ` newFileNames ` * list[ str] * - name of the files to write (omit file ext)
106
118
- ` quality ` * int, optional* - Quality of the returned sequence. Defaults to 1.
107
119
108
- ## convertMultLottie2GIF
109
-
110
- [[ find in source code]] ( ../../../pylottie/__init__.py#L84 )
120
+ #### Signature
111
121
112
122
``` python
113
- def convertMultLottie2GIF (
114
- fileNames : list[str ],
115
- newFileNames : list[str ],
116
- quality : int = 1 ,
123
+ def convertMultLottie2ALL (
124
+ fileNames : list[str ], newFileNames : list[str ], quality : int = 1
117
125
):
126
+ ...
118
127
```
119
128
129
+
130
+
131
+ ## convertMultLottie2GIF
132
+
133
+ [ Show source in __ init__ .py:84] ( ../../../pylottie/__init__.py#L84 )
134
+
120
135
Convert to gif
121
136
122
137
#### Arguments
@@ -125,18 +140,21 @@ Convert to gif
125
140
- ` newFileNames ` * list[ str] * - name of the files to write
126
141
- ` quality ` * int, optional* - Quality of the returned sequence. Defaults to 1.
127
142
128
- ## convertMultLottie2Webp
129
-
130
- [[ find in source code]] ( ../../../pylottie/__init__.py#L108 )
143
+ #### Signature
131
144
132
145
``` python
133
- def convertMultLottie2Webp (
134
- fileNames : list[str ],
135
- newFileNames : list[str ],
136
- quality : int = 1 ,
146
+ def convertMultLottie2GIF (
147
+ fileNames : list[str ], newFileNames : list[str ], quality : int = 1
137
148
):
149
+ ...
138
150
```
139
151
152
+
153
+
154
+ ## convertMultLottie2Webp
155
+
156
+ [ Show source in __ init__ .py:108] ( ../../../pylottie/__init__.py#L108 )
157
+
140
158
Convert to webp
141
159
142
160
#### Arguments
@@ -145,17 +163,21 @@ Convert to webp
145
163
- ` newFileNames ` * list[ str] * - name of the files to write
146
164
- ` quality ` * int, optional* - Quality of the returned sequence. Defaults to 1.
147
165
148
- ## recordLotties
149
-
150
- [[ find in source code]] ( ../../../pylottie/__init__.py#L178 )
166
+ #### Signature
151
167
152
168
``` python
153
- async def recordLotties (
154
- lottieData : list[str ],
155
- quality : int ,
156
- ) -> list[list[ int ]]:
169
+ def convertMultLottie2Webp (
170
+ fileNames : list[str ], newFileNames : list[ str ], quality : int = 1
171
+ ):
172
+ ...
157
173
```
158
174
175
+
176
+
177
+ ## recordLotties
178
+
179
+ [ Show source in __ init__ .py:177] ( ../../../pylottie/__init__.py#L177 )
180
+
159
181
Record the lottie data to a set of images
160
182
161
183
#### Arguments
@@ -167,15 +189,24 @@ Record the lottie data to a set of images
167
189
168
190
- ` list[list[int]] ` - duration and number of frames
169
191
192
+ #### Signature
193
+
194
+ ``` python
195
+ def recordLotties (lottieData : list[str ], quality : int ) -> list[list[int ]]:
196
+ ...
197
+ ```
198
+
199
+
200
+
170
201
## recordSingleLottie
171
202
172
- [[ find in source code]] ( ../../../pylottie/__init__.py#L212 )
203
+ [ Show source in __ init__ .py:206] ( ../../../pylottie/__init__.py#L206 )
204
+
205
+ #### Signature
173
206
174
207
``` python
175
- async def recordSingleLottie (
176
- browser ,
177
- lottieDataInstance ,
178
- quality ,
179
- index ,
180
- ) -> list[int ]:
208
+ def recordSingleLottie (browser , lottieDataInstance , quality , index ) -> list[int ]:
209
+ ...
181
210
```
211
+
212
+
0 commit comments