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

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

Open Wuge-Ran opened this issue 3 years ago • 4 comments

image image

Wuge-Ran avatar Apr 02 '21 08:04 Wuge-Ran

同遇到问题

bobsam avatar Apr 12 '21 03:04 bobsam

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

bobsam avatar Apr 12 '21 05:04 bobsam

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

JayEdver avatar Apr 13 '21 03:04 JayEdver

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

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

Genuifx avatar Mar 31 '22 08:03 Genuifx