如何解决部分真机生成长图时报错canvasToTempFilePath:fail no image?

发布于 6 年前作者 gjin5041 次浏览最后编辑 6 年前来自 issues

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

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

api:wx.canvasToTempFilePath

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

2 回复
lei30
lei301 楼5 年前

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

jun35
jun352 楼4 年前

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