@sme-uploader/thumbnail-generator

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

Usage no npm install needed!

<script type="module">
  import smeUploaderThumbnailGenerator from 'https://cdn.skypack.dev/@sme-uploader/thumbnail-generator';
</script>

README

@sme-uploader/thumbnail-generator

SME Uploader logo Build Status

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

Example

const SmeUploader = require('@sme-uploader/core');
const ThumbnailGenerator = require('@sme-uploader/thumbnail-generator');

const uploader = new SmeUploader()
uploader.use(ThumbnailGenerator, {
  thumbnailWidth: 200
});

Installation

$ npm install @sme-uploader/thumbnail-generator

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

Alternatively, you can also use this plugin in a pre-built bundle from CDN. In that case SmeUploader will attach itself to the global window.SmeUploader object. See the main SME Uploader documentation for instructions.

Documentation

Documentation for this plugin can be found on the SME Uploader website.

License

The MIT License.