A tool to inline images in Lottie JSON files
Project description
Lottie Inline Tool
A simple tool to inline images in Lottie JSON files.
Installation
$ pip install lottie-inline
Usage
$ lottie-inline /path/to/input-lottie-file.json /path/to/output-lottie-file.json
Details
The tool will inline all images in the Lottie JSON file and save the result to the output file.
transform:
{
"assets": [
{
"id": "image_0",
"w": 500,
"h": 500,
"u": "images/",
"p": "image.png",
"e": 0
},
//...
],
//...
}
to:
{
"assets": [
{
"id": "image_0",
"w": 500,
"h": 500,
"u": "",
"p": "data:image/png;base64,...",
"e": 1
},
//...
],
//...
}
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lottie_inline-0.1.1.tar.gz
(1.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lottie_inline-0.1.1.tar.gz.
File metadata
- Download URL: lottie_inline-0.1.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d8b4109508fd77eed8973e3562d611871aab94f79f81fce4000d46e2002fc79
|
|
| MD5 |
64cc022f7a6099c8e9fa49f923584cc7
|
|
| BLAKE2b-256 |
5192767a73aab4cb03b72a387007e2644eb39a2e947619808cd6fc89375ae22c
|
File details
Details for the file lottie_inline-0.1.1-py3-none-any.whl.
File metadata
- Download URL: lottie_inline-0.1.1-py3-none-any.whl
- Upload date:
- Size: 1.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0faffff5e548e6666141bd6fb6a50db75fde38687e2395d9c098d3883bd9c7dc
|
|
| MD5 |
96f0a7eeb0a11a46ab8059573927e8f1
|
|
| BLAKE2b-256 |
bd3bb7a7f72c6f698250d2038796a4e4225991fb67768f2ad324c84dd5d42bab
|