Comments (3)
可能是超出 iOS 内存限制,试试将 checkOrientation
属性设为 false
。
from compressorjs.
我设置了 {
strict: true,
checkOrientation: false,
quality: 0.6,
convertTypes: ["image/png", "image/webp"],
convertSize: 3000000,
}
jpeg格式的图片,ios还是无法压缩图片,安卓是可以的;
苹果拍照上传的图片是heif格式的没有这个问题
from compressorjs.
估计还是浏览器内存上限问题,实在不行,可以考虑上传到服务端进行压缩。
from compressorjs.
Related Issues (20)
- Compression not working on ios (webp) HOT 1
- Gif compression problem HOT 1
- 'Quality' param not followed when converting from png to jpeg HOT 2
- Adding the list of formats supported by compressojs in Docs HOT 6
- Question: Is there a way to check if an image is portrait or landscape? HOT 1
- Firefox setting "privacy.resistFingerprinting" to true will corrupt the image resize HOT 2
- 手机端浏览器中压缩成功回调的Blob对象中没有size和type属性
- 手机端同时调用压缩方法(大概3-5张同时处理),有概率出现压缩后的图片是空白图片 HOT 2
- I get a colored square instead of the image HOT 1
- Compression doesn’t work when the image has a lot of white background HOT 1
- Resize to non-proper scaling and checkmark effect HOT 1
- iOS 手机以及部分魅族18手机拍照无法压缩
- Loses Transparency In PNG Image HOT 2
- metadata are lost after compression HOT 1
- Why does my compressed size remain the same? HOT 1
- Error: The first argument must be an image File or Blob object. HOT 1
- how to setstate for the success result
- After compression, the image becomes larger HOT 1
- Is there any universal setting that supports compression of JPG and PNG?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compressorjs.