|
@@ -115,6 +115,7 @@ module.exports = class Dashboard extends Plugin {
|
|
width: 750,
|
|
width: 750,
|
|
height: 550,
|
|
height: 550,
|
|
thumbnailWidth: 280,
|
|
thumbnailWidth: 280,
|
|
|
|
+ thumbnailType: 'image/jpeg',
|
|
waitForThumbnailsBeforeUpload: false,
|
|
waitForThumbnailsBeforeUpload: false,
|
|
defaultPickerIcon,
|
|
defaultPickerIcon,
|
|
showLinkToFileUploadResult: true,
|
|
showLinkToFileUploadResult: true,
|
|
@@ -1008,6 +1009,7 @@ module.exports = class Dashboard extends Plugin {
|
|
this.uppy.use(ThumbnailGenerator, {
|
|
this.uppy.use(ThumbnailGenerator, {
|
|
id: `${this.id}:ThumbnailGenerator`,
|
|
id: `${this.id}:ThumbnailGenerator`,
|
|
thumbnailWidth: this.opts.thumbnailWidth,
|
|
thumbnailWidth: this.opts.thumbnailWidth,
|
|
|
|
+ thumbnailType: this.opts.thumbnailType,
|
|
waitForThumbnailsBeforeUpload: this.opts.waitForThumbnailsBeforeUpload,
|
|
waitForThumbnailsBeforeUpload: this.opts.waitForThumbnailsBeforeUpload,
|
|
// If we don't block on thumbnails, we can lazily generate them
|
|
// If we don't block on thumbnails, we can lazily generate them
|
|
lazy: !this.opts.waitForThumbnailsBeforeUpload
|
|
lazy: !this.opts.waitForThumbnailsBeforeUpload
|