Comments (1)
@innominata This lib used an iterative approach to compress the image. The default maximum number of iteration is 10. If you expect to compress a very large image, you can increase the maximum number of iteration by setting the parameter 'maxIteration' in the options. Such as:
imageCompression(file, {maxSizeMB: 2, maxIteration: 50})
from browser-image-compression.
Related Issues (20)
- Black image after compression on iOS HOT 1
- imageCompression error on nextjs HOT 1
- BMP file extension not sustained HOT 1
- Image reference error in Webworker HOT 1
- BMP file size wrongly increased
- Error catch bypass? HOT 1
- The compression yields a result image with 96 dpi HOT 1
- Big png file result in an a 0 byte broken image HOT 3
- The received filepath suffix disappears after compression HOT 3
- Image Compression On Ipad Safari Browser Results In Black Image When Image Is Over 10MB HOT 2
- Why does it take longer in my app than in the demo HOT 2
- Background Discord
- Question About CDN Usage in Web Worker Since v2.0.1
- Don't increase the DPI when compressing an image HOT 1
- Try imageCompression() catches a ProgressEvent instead of an error HOT 1
- Compression stuck on iPhone XS Max iOS 17.0.3 HOT 1
- Slow HOT 1
- Inconsistent output from main and web worker
- System is hanging when we are trying to load 30 images of 100MB size.
- errorMsg: "ReferenceError: Can't find variable: FileReader" HOT 1
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 browser-image-compression.