图片选择上传,gif图获取到的tempFilePaths却是jpg

发布于 8 年前作者 schen11412 次浏览最后编辑 8 年前来自 ask
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 回复
gdai
gdai1 楼6 年前

ios 以前是支持的

yong62
yong622 楼6 年前

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

安卓是支持选到gif的

daiping
daiping3 楼6 年前

iOS 不支持 GIF