Image Compression App
The app can convert all image format to a less than 1MB file format, download the compression project now and use it for your project, all source code and dev notes are included.
🛠Dev Notes ðŸ›
Packages that are using
Browser Image Compression
Browser Image Compression
npm install browser-image-compression --save
// you should provide one of maxSizeMB, maxWidthOrHeight in the options
const options: Options = {
// (default: Number.POSITIVE_INFINITY) maxSizeMB: number,
// compressedFile will scale down by ratio to a point that width or height is smaller than maxWidthOrHeight (default: undefined) maxWidthOrHeight: number,
// but, automatically reduce the size to smaller than the maximum Canvas size supported by each browser.
// Please check the Caveat part for details.
// optional, a function takes one progress argument (percentage from 0 to 100) onProgress: Function,
// optional, use multi-thread web worker, fallback to run in main-thread (default: true) useWebWorker: boolean,
// following options are for advanced users
// optional, max number of iteration to compress the image (default: 10) maxIteration: number,
// optional, see https://stackoverflow.com/a/ 32490603/10395024 exifOrientation: number,
// optional, fileType override fileType: string,
// optional, initial quality value between 0 and 1 (default: 1) initialQuality: number
}
imageCompression(file: File, options: Options): Promise<File>
Frequently asked questions
For anything else (licensing, billing, etc), please visit our Help Center.
How do I contact support?
How can I unzip product files?
Exclusive Icons & Illustrations
Checkout our latest themes, templates and illustrations.