lottie-node icon indicating copy to clipboard operation
lottie-node copied to clipboard

Examples produce blank images and videos

Open GDownes opened this issue 3 years ago • 1 comments

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

GDownes avatar Apr 09 '21 09:04 GDownes

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

https://user-images.githubusercontent.com/515120/114237178-fc24cb00-9982-11eb-8dc9-3fb13de51de1.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.

friday avatar Apr 09 '21 20:04 friday