Comments (6)
Let me clarify: If you replace sample.json with your own lottie file, you get an empty png as result? Your lottie file somehow contains raster assets?
I have never heard of lottie files that contain raster assets. Can you send me the file you were using?
Edit: Are you referring to this? https://lottiefiles.github.io/lottie-docs/assets/
from rlottie-python.
yeah, Maybe my expression is not particularly accurate,but the raster image can be inserted as reference image as the fields ‘u‘ and ’p‘ described.
well, how can i send u my own sample file?
from rlottie-python.
I think you can upload it here by drag and drop. If that does not work, try to change the extension to txt, or upload to cloud drive and share
from rlottie-python.
from rlottie-python.
I see no problem
from rlottie_python import LottieAnimation
json_file = 'data.json'
with LottieAnimation.from_file(path=json_file) as anim:
anim.save_animation('test1.apng')
anim.save_animation('test2.gif')
anim.save_animation('test3.webp')
Maybe it's because the circles are white, and the transparent background is displayed as white on your side, or you accidentally cause the transparent background to become white background (e.g. Are you using 'RGBA' mode for pillow)? Or perhaps you have selected an empty frame to convert to png?
btw You may take a look at the lottie file here: http://rlottie.com/
Show me your code? What OS? Are you running the latest version of rlottie-python?
from rlottie-python.
Likely not a problem with this repo. I am closing this for now. If you still encounter difficulties, please re-open issue with more information.
from rlottie-python.
Related Issues (8)
- Bad GIF quality HOT 4
- Add wheels for the aarch64 architecture HOT 3
- Help in building ARM 64-bit architecture (AARCH64) for rlottie. HOT 3
- License HOT 1
- Performance question/ discussion/ thoughts? HOT 7
- Won't render images embedded in the lottie HOT 2
- Any example for `lottie_animation_property_override`? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rlottie-python.