uppy/packages/@uppy/compressor
2022-08-04 18:03:05 +02:00
..
src Fix Compressor being broken when no name is in the compressed blob (#3947) 2022-08-04 13:23:29 +01:00
types Fix Compressor docs, pass files array to compressor:complete event (#3682) 2022-05-18 19:29:08 +01:00
CHANGELOG.md Release: uppy@2.13.1 (#3916) 2022-07-27 17:33:08 +01:00
LICENSE @uppy/compressor: Add image compressor plugin (#3471) 2022-02-16 11:40:08 +00:00
package.json fixup! Merge branch 3.x 2022-08-04 18:03:05 +02:00
README.md @uppy/compressor: Add image compressor plugin (#3471) 2022-02-16 11:40:08 +00:00

@uppy/compressor

Uppy logo: a superman puppy in a pink suit

CI status for Uppy tests CI status for Companion tests CI status for browser tests

The Compressor plugin for Uppy optimizes images (JPEG, PNG, WEBP), saving on average up to 60% in size (roughly 18 MB for 10 images). It uses Compressor.js.

Uppy is being developed by the folks at Transloadit, a versatile file encoding service.

Example

import Uppy from '@uppy/core'
import Compressor from '@uppy/compressor'

const uppy = new Uppy()
uppy.use(Compressor)

Installation

npm install @uppy/compressor

We recommend installing from yarn or npm, and then using a module bundler such as Parcel, Vite or Webpack.

Alternatively, you can also use this plugin in a pre-built bundle from Transloadits CDN: Edgly. In that case Uppy will attach itself to the global window.Uppy object. See the main Uppy documentation for instructions.

Documentation

Documentation for this plugin can be found on the Uppy website.

License

The MIT License.