uppy/packages/@uppy/compressor
github-actions[bot] 861f264e53
Release: uppy@3.0.0-beta (#3798)
| Package                   |    Version | Package                   |    Version |
| ------------------------- | ---------- | ------------------------- | ---------- |
| @uppy/audio               | 3.0.0-beta | @uppy/progress-bar        | 3.0.0-beta |
| @uppy/aws-s3              | 3.0.0-beta | @uppy/provider-views      | 3.0.0-beta |
| @uppy/aws-s3-multipart    | 3.0.0-beta | @uppy/react               | 3.0.0-beta |
| @uppy/box                 | 3.0.0-beta | @uppy/redux-dev-tools     | 3.0.0-beta |
| @uppy/companion           | 4.0.0-beta | @uppy/robodog             | 3.0.0-beta |
| @uppy/companion-client    | 3.0.0-beta | @uppy/screen-capture      | 3.0.0-beta |
| @uppy/compressor          | 3.0.0-beta | @uppy/status-bar          | 3.0.0-beta |
| @uppy/core                | 3.0.0-beta | @uppy/store-default       | 3.0.0-beta |
| @uppy/dashboard           | 3.0.0-beta | @uppy/store-redux         | 3.0.0-beta |
| @uppy/drag-drop           | 3.0.0-beta | @uppy/svelte              | 3.0.0-beta |
| @uppy/drop-target         | 3.0.0-beta | @uppy/thumbnail-generator | 3.0.0-beta |
| @uppy/dropbox             | 3.0.0-beta | @uppy/transloadit         | 3.0.0-beta |
| @uppy/facebook            | 3.0.0-beta | @uppy/tus                 | 3.0.0-beta |
| @uppy/file-input          | 3.0.0-beta | @uppy/unsplash            | 3.0.0-beta |
| @uppy/form                | 3.0.0-beta | @uppy/url                 | 3.0.0-beta |
| @uppy/golden-retriever    | 3.0.0-beta | @uppy/utils               | 5.0.0-beta |
| @uppy/google-drive        | 3.0.0-beta | @uppy/vue                 | 3.0.0-beta |
| @uppy/image-editor        | 3.0.0-beta | @uppy/webcam              | 3.0.0-beta |
| @uppy/informer            | 3.0.0-beta | @uppy/xhr-upload          | 3.0.0-beta |
| @uppy/instagram           | 3.0.0-beta | @uppy/zoom                | 3.0.0-beta |
| @uppy/locales             | 3.0.0-beta | uppy                      | 3.0.0-beta |
| @uppy/onedrive            | 3.0.0-beta |                           |            |

- meta: temporary adjust release script for the beta (Antoine du Hamel)
- meta: disable ESM to CJS transform in dist files (Antoine du Hamel / #3773)
- @uppy/companion: remove `searchProviders` wrapper & move `s3` options (Merlijn Vos / #3781)
- meta: do not test on EOL versions of Node.js (Antoine du Hamel / #3786)
- @uppy/companion: remove support for EOL versions of Node.js (Antoine du Hamel / #3784)
- @uppy/react: refactor to ESM (Antoine du Hamel / #3780)
- @uppy/transloadit: remove IE 10 hack (Antoine du Hamel / #3777)
2022-05-30 17:50:06 +01:00
..
src Fix Compressor docs, pass files array to compressor:complete event (#3682) 2022-05-18 19:29:08 +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.11.0 (#3796) 2022-05-30 17:17:28 +01:00
LICENSE @uppy/compressor: Add image compressor plugin (#3471) 2022-02-16 11:40:08 +00:00
package.json Release: uppy@3.0.0-beta (#3798) 2022-05-30 17:50:06 +01: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.