如何解决部分真机生成长图时报错canvasToTempFilePath:fail no image?
发布于 4 年前 作者 gjin 4686 次浏览 来自 官方Issues

部分ios手机生成长图时报错:canvasToTempFilePath:fail no image

ps:图片很长,高度有1万多甚至更高多 px,当图片高度不高当时候 时可以正常生成图片。

api:wx.canvasToTempFilePath

代码片段:https://developers.weixin.qq.com/s/VTr7VcmL7ijC

2 回复

你好,canvas原有接口不再维护,请使用新版的canvas实现。https://developers.weixin.qq.com/miniprogram/dev/component/canvas.html

已提交给官方童鞋了。有结果回你哈。

回到顶部