@sme-uploader/thumbnail-generator
v1.0.2
Published
SME Uploader plugin that generates small previews of images to show on your upload UI.
Downloads
6
Maintainers
Readme
@sme-uploader/thumbnail-generator
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.