Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @uppy/thumbnail-generator with all npm packages installed. Try it out:

require("@uppy/core/package.json"); // @uppy/core is a peer dependency. var thumbnailGenerator = require("@uppy/thumbnail-generator")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@uppy/thumbnail-generator v1.7.1

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

@uppy/thumbnail-generator

Uppy logo: a superman puppy in a pink suit

Build Status

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 = 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 Transloadit's CDN: Edgly. In that case Uppy will attach itself to the global window.Uppy object. See the main Uppy documentation for instructions.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free