由于小程序对图片大小有要求,因此需要把本地图片资源传到外网,通过使用外网大大缩减图片容量。
如何把本地图片转换成网络图片呢?一个比较好用的工具-土豆图床
工具地址:https://images.ac.cn
(简约版:https://images.ac.cn/simple.html)
复制的链接作为image的src属性即可:
<image src="https://pics.images.ac.cn/image/5ee89716e7c37.html" />
原文:https://www.cnblogs.com/wangyuxue/p/13143463.html