LottieFiles / lottie-js

An object model for representing and manipulating the Lottie JSON structure in JS.
MIT License
144 stars 19 forks source link

Bug : embedded image asset not displayed #21

Open beve opened 2 years ago

beve commented 2 years ago

Overview

When embedding an image as data url, it is not displayed. In the spec, an image asset has a property "embedded" to declare if the image is embedded or not.

"e": { "title": "Embedded", "description": "Whether the image is embedded", "$ref": "#/$defs/helpers/int-boolean", "default": 0 }

It can be added to assets/image-asset.ts and handled by fromJSON() and toJSON() functions.

NB: In the same file, there is a typo on the id property in function toJSON(), see #19

Consuming repo

What repo were you working in when this issue occurred?

Labels

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.