GET http://tmp/HPkZrTESINFNa89881c43bc52847acb2c5279da80e66.jpg 500 (Internal Server Error)(env: Windows,mp,1.05.2105170; lib: 2.10.4)
通过chooseimg获取本地图片
wx.getImageInfo({
src: that.data.uploaderList[i].url,
success(res){
console.log(res)
let imgpath = res.path //本地图片路径
let imgwidth = res.width //图片的宽
let imgheight = res.height //图片的高
wx.createSelectorQuery()
.select('#canvas')
.fields({
node: true,
})
.exec(function(res){
const canvas = res[0].node
const ctx = canvas.getContext('2d')
ctx.width = imgwidth
ctx.height = imgheight
let seal = canvas.createImage();
seal.src = imgpath;
seal.onload = () => {
ctx.drawImage(seal,0, 0, imgwidth, imgheight);
你好,请问这个问题解决了吗,我也遇到这个问题