Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json中引用图片就会报错,请问有解决方案吗? #29

Closed
Wuge-Ran opened this issue Apr 2, 2021 · 4 comments
Closed

json中引用图片就会报错,请问有解决方案吗? #29

Wuge-Ran opened this issue Apr 2, 2021 · 4 comments

Comments

@Wuge-Ran
Copy link

Wuge-Ran commented Apr 2, 2021

image
image

@bobsam
Copy link

bobsam commented Apr 12, 2021

同遇到问题

@bobsam
Copy link

bobsam commented Apr 12, 2021

用这个吧:https://github.com/landn172/lottie-miniapp 亲测可用

@JayEdver
Copy link

这个是因为lottie中图片的尺寸必须与json中的配置一致。比如w: 1125, h:2436 ,那你就只能用1125*2436分辨率的图片

@Genuifx
Copy link

Genuifx commented Mar 31, 2022

无解,
基础库大于2.11.0的,可以让设计师导出的时候把图片塞到json里面

另外就是相对路径的图片是支持的,保证你的小程序文件夹里面的路径正确就行

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

No branches or pull requests

5 participants