Giter Site home page Giter Site logo

Comments (6)

laggykiller avatar laggykiller commented on June 11, 2024

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.

yugaocheng avatar yugaocheng commented on June 11, 2024

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.

laggykiller avatar laggykiller commented on June 11, 2024

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.

yugaocheng avatar yugaocheng commented on June 11, 2024

data.txt

from rlottie-python.

laggykiller avatar laggykiller commented on June 11, 2024

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.

laggykiller avatar laggykiller commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.