Skip to content
New issue

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

IOS无法压缩JPG格式的图 #186

Open
fandaxia8 opened this issue Mar 20, 2024 · 3 comments
Open

IOS无法压缩JPG格式的图 #186

fandaxia8 opened this issue Mar 20, 2024 · 3 comments

Comments

@fandaxia8
Copy link

fandaxia8 commented Mar 20, 2024

图像大小为18M, 参数为quality: 0.6,
convertTypes: ["*"],
convertSize: 10000000,同样一张图安卓是没问题的

@fengyuanchen
Copy link
Owner

可能是超出 iOS 内存限制,试试将 checkOrientation 属性设为 false

@csfnb
Copy link

csfnb commented Apr 30, 2024

我设置了 {
strict: true,
checkOrientation: false,
quality: 0.6,
convertTypes: ["image/png", "image/webp"],
convertSize: 3000000,
}
jpeg格式的图片,ios还是无法压缩图片,安卓是可以的;
苹果拍照上传的图片是heif格式的没有这个问题

@fengyuanchen
Copy link
Owner

估计还是浏览器内存上限问题,实在不行,可以考虑上传到服务端进行压缩。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants