uppy/packages/@uppy/thumbnail-generator
github-actions[bot] 7e9f34ed30
Release: uppy@2.5.1 (#3493)
| Package                   | Version | Package                   | Version |
| ------------------------- | ------- | ------------------------- | ------- |
| @uppy/companion           |   3.2.1 | @uppy/thumbnail-generator |   2.1.1 |
| @uppy/compressor          |   0.2.2 | @uppy/robodog             |   2.3.1 |
| @uppy/onedrive            |   2.0.6 | uppy                      |   2.5.1 |

- meta: Missing comma and wrong attribute name on cors example config (Edgar Santiago / #3465)
- @uppy/onedrive: Update README.md (Márton László Attila / #3489)
- @uppy/compressor: Add image compressor plugin (Artur Paikin / #3471)
- @uppy/companion: fix periodicPingUrls oops (Mikael Finstad / #3490)
- meta: add support for ESM sources in build script (Antoine du Hamel / #3468)
2022-02-16 13:44:01 +00:00
..
src @uppy/compressor: Add image compressor plugin (#3471) 2022-02-16 11:40:08 +00:00
types Add dashboard and UIPlugin types (#3426) 2022-02-01 12:57:24 +03:00
CHANGELOG.md Release: uppy@2.5.0 (#3487) 2022-02-14 18:53:02 +00:00
LICENSE Move ThumbnailGenerator to @uppy/thumbnail-generator. 2018-06-14 16:31:19 +02:00
package.json Release: uppy@2.5.1 (#3493) 2022-02-16 13:44:01 +00:00
README.md Add retext to markdown linter (#3024) 2021-10-14 16:10:45 +02:00

@uppy/thumbnail-generator

Uppy logo: a superman puppy in a pink suit

npm version CI status for Uppy tests CI status for Companion tests CI status for browser tests

Uppy plugin that generates small previews of images to show on your upload UI.

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

Example

import Uppy from '@uppy/core'
import ThumbnailGenerator from '@uppy/thumbnail-generator'

const uppy = new Uppy()
uppy.use(ThumbnailGenerator, {
  thumbnailWidth: 200,
})

Installation

$ npm install @uppy/thumbnail-generator

We recommend installing from npm and then using a module bundler such as Webpack, Browserify or Rollup.js.

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.

License

The MIT License.