lottie / lottie-spec

Lottie Animation format documentation and tools
https://lottie.github.io/lottie-spec/
Other
53 stars 14 forks source link

Metadata section #92

Open mimi89999 opened 2 months ago

mimi89999 commented 2 months ago

Hello, I noticed that some files like https://github.com/Pool-Of-Tears/Myne/blob/main/app%2Fsrc%2Fmain%2Fres%2Fraw%2Fno_library_items_lottie.json have a metadata section. I was searching for it in the spec, but couldn't find any info.

Is there any standardized way to specify the file author and license info in a Lottie file?

mbasaglia commented 2 months ago

We haven't added it to the specs because there's some discrepancy in the current implementations.

There are currently two ways of adding metadata to a lottie, documented here: https://lottiefiles.github.io/lottie-docs/animation/#animation (properties on the top level JSON object)

meta supports adding an author, and similar info (no license but that could be useful to add once we standardize the metadata)

metadata.customProps is more free-form, you can add anything in there but there will be no software support to detect structured info.