html52.com
我爱小程序-开发者交流社区

wx.canvasToTempFilePath 生成JPG问题 ?

wx.canvasToTempFilePath

wx.canvasToTempFilePath({
        canvas: this.canvas,
        x0,
        y0,
        width: this.canvas.width, //导出图片的宽
        height: this.canvas.height, //导出图片的高
        destWidth: this.canvas.width, //导出图片的宽
        destHeight: this.canvas.height, //导出图片的高
        fileType'jpg',
	quality: 0.5
        success(res) {
        }, fail(err) {
        }
      }, that)


文件类型为JPG其实就是改了个名字,导入PS等软件中无法识别,质量参数也没起作用,文件大小无变化。

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付