mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-29 13:00:18 +00:00
Add tests for thumbnail:* events. Show build output Try adding a non image file? fixes Add -b flags to local acceptance tests fix hanging thumbnail test Add a corrupt image revoke Require passing integration tests extended debugging? Try more browser versions it helps to pick a browser that's available sort stuff in .travis.yml and add whitespace for easier navigation [REVERT BEFORE MERGE] only run acceptance tests on this pr make sure lerna publishes stuff to local do git tag version during integration test update lerna fix install / bootstrap execution order ? --no-ci dont do npm ls because it errors with lerna set a git branch name blehbleh ughhhhhhhhhhhh onerror? no onerror i guess onerror 2 Revert "onerror 2" This reverts commit 64d88551fa1cd337b27e25d16a604dd781a15b43. onerror 3 more debug data disable browsers that work fix syntax for older browsers thumbnails suite check different edge versions abc use addeventlistener for error, which is different from onerror no clue skip thumb test in edge or whatever Re enable other browsers. re enable tasks fix edge skip this one was intentionally disabled Remove debug leftovers edge → supportschoosefile :ready → :all-generated |
||
|---|---|---|
| .. | ||
| src | ||
| types | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
@uppy/thumbnail-generator
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
const Uppy = require('@uppy/core')
const ThumbnailGenerator = require('@uppy/thumbnail-generator')
const uppy = Uppy()
uppy.use(ThumbnailGenerator, {
thumbnailWidth: 200
})
Installation
$ npm install @uppy/thumbnail-generator --save
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 Transloadit's CDN: Edgly. In that case Uppy will attach itself to the global window.Uppy object. See the main Uppy documentation for instructions.