We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
上面的文件(约5MB),用类似下面的代码压缩失败(上传后发现没有压缩):
compressAccurately(file, { size: 1000, // _self.imageSizeLimits[_self.islIndex], //accuracy: 0.9, type: 'image/png' }).then(res => { let blobUrl = URL.createObjectURL(res) this.imagesTemp.push(blobUrl) this.extensionDict[blobUrl] = 'png' // extension // 压缩后上传丢失后缀 })
但把 type: 'image/png' 改成 type: 'image/jpeg' 是可以正常压缩的
环境:Windows 10 (最近更新7月)、浏览器 HBuilderX 2.7.14 内置浏览器
The text was updated successfully, but these errors were encountered:
Hi @sjg20010414 did you find any solution? i am facing the same issue.
Sorry, something went wrong.
有一说一 确实 不知道为啥输出不了png
No branches or pull requests
上面的文件(约5MB),用类似下面的代码压缩失败(上传后发现没有压缩):
但把 type: 'image/png' 改成 type: 'image/jpeg' 是可以正常压缩的
环境:Windows 10 (最近更新7月)、浏览器 HBuilderX 2.7.14 内置浏览器
The text was updated successfully, but these errors were encountered: