图片选择上传,gif图获取到的tempFilePaths却是jpg
发布于 6 年前 作者 schen 11292 次浏览 来自 问答
wx.chooseImage({
            count: 1,
            sizeType: ["original"],
            sourceType: ["album", "camera"],
            success: function(res) {
                let tempPath = res.tempFilePaths[0]
                console.log('tempPath:' + tempPath);
                console.log('tempSize:' + res.tempFiles[0].size);

代码如上,当选择图片为gif时,返回的地址却是jpg的

3 回复

ios 以前是支持的

有没有什么途径可以得到gif?

安卓是支持选到gif的

iOS 不支持 GIF

回到顶部