@uppy/compressor
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
Transloadit’s 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.
2.1.0
Released: 2021-09-01
| Package | Version | Package | Version |
|-|-|-|-|
| @uppy/angular | 0.2.2 | @uppy/svelte | 1.0.2 |
| @uppy/aws-s3 | 2.0.2 | @uppy/thumbnail-generator | 2.0.2 |
| @uppy/core | 2.0.2 | @uppy/vue | 0.4.0 |
| @uppy/dashboard | 2.0.2 | @uppy/xhr-upload | 2.0.2 |
| @uppy/react | 2.0.2 | uppy | 2.1.0 |
| @uppy/robodog | 2.0.3 | - | - |
- @uppy/aws-s3: fix 'send' XMLHttpRequest (#3130 / @jhen0409)
- @uppy/aws-s3, @uppy/thumbnail-generator, @uppy/xhr-upload: fix
i18n
(#3142 / @jhen0409 / @aduh95) - @uppy/react: fix
DashboardModal
's target
type (#3110 / @Murderlon) - @uppy/xhr-upload: add types for methods (#3154 / @BePo65)
- @uppy/core: improve accuracy/compatibility of success/error callback types (#3141 / @Hawxy)
- @uppy/vue: add Vue FileInput component (#3125 / @valentinoli)