使用wx.compressImage压缩图片时 图片的后缀会被替换成undefined?

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

步骤

    1.首先使用wx.chooseImage选中手机相册中的图片

    2.将wx.chooseImage返回的tempFilePaths进行wx.compressImage压缩,压缩后图片的后缀就没了(.jpg)

3 回复
xiejuan
xiejuan1 楼6 年前

真机没问题,编辑器上有问题。。。

yan71
yan712 楼6 年前

一样遇到编辑器里有问题

jun27
jun273 楼5 年前

你好,麻烦工具的版本号和能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html