UNPKG

1.6 kBMarkdownView Raw
1# @uppy/thumbnail-generator
2
3<img src="https://uppy.io/images/logos/uppy-dog-head-arrow.svg" width="120" alt="Uppy logo: a superman puppy in a pink suit" align="right">
4
5<a href="https://www.npmjs.com/package/@uppy/thumbnail-generator"><img src="https://img.shields.io/npm/v/@uppy/thumbnail-generator.svg?style=flat-square"></a>
6<a href="https://travis-ci.org/transloadit/uppy"><img src="https://img.shields.io/travis/transloadit/uppy/master.svg?style=flat-square" alt="Build Status"></a>
7
8Uppy plugin that generates small previews of images to show on your upload UI.
9
10Uppy is being developed by the folks at [Transloadit](https://transloadit.com), a versatile file encoding service.
11
12## Example
13
14```js
15const Uppy = require('@uppy/core')
16const ThumbnailGenerator = require('@uppy/thumbnail-generator')
17
18const uppy = Uppy()
19uppy.use(ThumbnailGenerator, {
20 thumbnailWidth: 200
21})
22```
23
24## Installation
25
26```bash
27$ npm install @uppy/thumbnail-generator --save
28```
29
30We recommend installing from npm and then using a module bundler such as [Webpack](https://webpack.js.org/), [Browserify](http://browserify.org/) or [Rollup.js](http://rollupjs.org/).
31
32Alternatively, 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](https://uppy.io/docs/#Installation) for instructions.
33
34<!-- Undocumented currently
35## Documentation
36
37Documentation for this plugin can be found on the [Uppy website](https://uppy.io/docs/DOC_PAGE_HERE).
38-->
39
40## License
41
42[The MIT License](./LICENSE).