Skip to content

Commit 4f0c714

Browse files
committed
rel 2024
1 parent ddfd2b5 commit 4f0c714

File tree

7 files changed

+102
-5
lines changed

7 files changed

+102
-5
lines changed

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 - 2021/01/07
7+
8+
- Update deps
9+
610
## 2023 - 2023/08/31
711

812
- Update deps

documentation/reference/pyrlottie/index.md

Lines changed: 97 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Pyrlottie
22

3-
[Pyrlottie Index](../README.md#pyrlottie-index) /
4-
Pyrlottie
3+
[Pyrlottie Index](../README.md#pyrlottie-index) / Pyrlottie
54

65
> Auto-generated documentation for [pyrlottie](../../../pyrlottie/__init__.py) module.
76
@@ -10,6 +9,10 @@ Pyrlottie
109
- [LottieFile](#lottiefile)
1110
- [LottieFile().__attrs_post_init__](#lottiefile()__attrs_post_init__)
1211
- [LottieFrames](#lottieframes)
12+
- [_execSubprocess](#_execsubprocess)
13+
- [_getBinDir](#_getbindir)
14+
- [_getTransparency](#_gettransparency)
15+
- [_scale](#_scale)
1316
- [convMultLottie](#convmultlottie)
1417
- [convMultLottieFrames](#convmultlottieframes)
1518
- [convMultLottieTransparentFrames](#convmultlottietransparentframes)
@@ -66,8 +69,8 @@ LottieFile __attrs_post_init__ called by attrs.
6669

6770
#### Arguments
6871

69-
- `path` *str* - path to the lottie file
70-
- `data` *dict* - python dict representing the json data. Default=None (file is read)
72+
- [path](#lottiefile) *str* - path to the lottie file
73+
- [data](#lottiefile) *dict* - python dict representing the json data. Default=None (file is read)
7174

7275
#### Raises
7376

@@ -101,6 +104,96 @@ class LottieFrames: ...
101104

102105

103106

107+
## _execSubprocess
108+
109+
[Show source in __init__.py:153](../../../pyrlottie/__init__.py#L153)
110+
111+
Execute a command and check for errors.
112+
113+
#### Arguments
114+
115+
- `command` *str* - commands as a string
116+
117+
#### Returns
118+
119+
- `tuple[int,` *bytes]* - tuple of return code (int) and stdout (str)
120+
121+
#### Signature
122+
123+
```python
124+
async def _execSubprocess(command: str) -> tuple[int, bytes]: ...
125+
```
126+
127+
128+
129+
## _getBinDir
130+
131+
[Show source in __init__.py:173](../../../pyrlottie/__init__.py#L173)
132+
133+
Get the binary dir using the current environment (platform.system(), platform.machine()).
134+
135+
#### Raises
136+
137+
- `OSError` - if the user's environment is not supported
138+
139+
#### Returns
140+
141+
- `str` - binDir - the binary dir
142+
143+
#### Signature
144+
145+
```python
146+
def _getBinDir() -> str: ...
147+
```
148+
149+
150+
151+
## _getTransparency
152+
153+
[Show source in __init__.py:205](../../../pyrlottie/__init__.py#L205)
154+
155+
Get the transparent pixels from an image with a red bg and an image with a black bg.
156+
157+
#### Arguments
158+
159+
- `background` *np.ndarray* - image1 (the red image)
160+
- `foreground` *np.ndarray* - image2 (the black image)
161+
162+
#### Returns
163+
164+
- `np.ndarray` - pixels for the transparent image
165+
166+
#### Signature
167+
168+
```python
169+
def _getTransparency(image1: np.ndarray, image2: np.ndarray) -> np.ndarray: ...
170+
```
171+
172+
173+
174+
## _scale
175+
176+
[Show source in __init__.py:190](../../../pyrlottie/__init__.py#L190)
177+
178+
Get a scaled dimen.
179+
180+
#### Arguments
181+
182+
- `dimen` *str* - dimension in px
183+
- `scale` *float* - scale
184+
185+
#### Returns
186+
187+
- `Optional[int,` *str]* - scaled dimen (min=1)
188+
189+
#### Signature
190+
191+
```python
192+
def _scale(dimen: str, scale: float = 1) -> int | str: ...
193+
```
194+
195+
196+
104197
## convMultLottie
105198

106199
[Show source in __init__.py:401](../../../pyrlottie/__init__.py#L401)

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 = "pyrlottie"
3-
version = "2023"
3+
version = "2024"
44
license = "mit"
55
description = "Convert .tgs and .lottie to .webp or .gif using rlottie."
66
authors = ["FredHappyface"]

pyrlottie/linux_aarch64/gif2webp

100644100755
File mode changed.

pyrlottie/linux_aarch64/lottie2gif

100644100755
File mode changed.

pyrlottie/linux_x86_64/gif2webp

100644100755
File mode changed.

pyrlottie/linux_x86_64/lottie2gif

100644100755
File mode changed.

0 commit comments

Comments
 (0)