Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Examples produce blank images and videos #15

Open
GDownes opened this issue Apr 9, 2021 · 1 comment
Open

Examples produce blank images and videos #15

GDownes opened this issue Apr 9, 2021 · 1 comment

Comments

@GDownes
Copy link

GDownes commented Apr 9, 2021

Moving to 2.0.0.
Running the lottie-node examples produces blank images and videos.
Previously this happened when replacing images, but is now happening for all examples.

Expected behavior

Images and videos produced contain content

Actual behavior

Videos produced are blank, white background throughout without content

Steps to reproduce

  • Clone git
  • Install dependencies
  • Run examples e.g. 'node render-video.js lottie-logo2.json logo.mp4'

Environment

  • Versions:

    • lottie-node: 2.0.0
    • lottie-web: 5.7.8
    • node-canvas: 2.7.0
    • jsdom: 16.5.2
    • Node.js: 14.16.1
  • Operating System:

Ubuntu 20.04, Windows 10 and MacOS 10.15.7

@friday
Copy link
Owner

friday commented Apr 9, 2021

It works for me, with the exact versions you listed (on Arch Linux)

logo.mp4

You can try reverting my last commits and if you can get the v1 or an in-between version to work please try to work out why it's not working for you now. If you figure it I'd appreciate a pull request with only the changes needed to make it work for you.

I haven't used this library or Lottie for years. Since before lottie-node was published even. Only reason I published it was that it was a lot of work for me and my coworkers to support server side rendering of lottie files. I didn't want that to go lost, but now that puppeteer-lottie exists I recommend that instead. #8 is still not fixed. Some animations/layers don't work or don't render.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants