@uppy/thumbnail-generator
Advanced tools
Comparing version 1.6.7 to 1.7.0
@@ -115,2 +115,3 @@ var _class, _temp; | ||
_this.defaultThumbnailDimension = 200; | ||
_this.thumbnailType = _this.opts.thumbnailType || 'image/jpeg'; | ||
_this.defaultLocale = { | ||
@@ -196,3 +197,3 @@ strings: { | ||
return _this2.canvasToBlob(resizedImage, 'image/jpeg', 80); | ||
return _this2.canvasToBlob(resizedImage, _this2.thumbnailType, 80); | ||
}).then(function (blob) { | ||
@@ -468,2 +469,2 @@ // bug in the compatibility data | ||
return ThumbnailGenerator; | ||
}(Plugin), _class.VERSION = "1.6.7", _temp); | ||
}(Plugin), _class.VERSION = "1.7.0", _temp); |
{ | ||
"name": "@uppy/thumbnail-generator", | ||
"description": "Uppy plugin that generates small previews of images to show on your upload UI.", | ||
"version": "1.6.7", | ||
"version": "1.7.0", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "^3.2.3", | ||
"@uppy/utils": "^3.2.4", | ||
"exifr": "^5.0.2", | ||
@@ -33,3 +33,3 @@ "math-log2": "^1.0.1" | ||
}, | ||
"gitHead": "7bf5ca55a74eed7a7fcc71285dfb98350ac2e08e" | ||
"gitHead": "84f7b4d37daa4c1dc98138a169189412af2ae498" | ||
} |
@@ -24,2 +24,3 @@ const { Plugin } = require('@uppy/core') | ||
this.defaultThumbnailDimension = 200 | ||
this.thumbnailType = this.opts.thumbnailType || 'image/jpeg' | ||
@@ -96,3 +97,3 @@ this.defaultLocale = { | ||
const resizedImage = this.resizeImage(rotatedImage, dimensions.width, dimensions.height) | ||
return this.canvasToBlob(resizedImage, 'image/jpeg', 80) | ||
return this.canvasToBlob(resizedImage, this.thumbnailType, 80) | ||
}) | ||
@@ -99,0 +100,0 @@ .then(blob => { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74551
1219
Updated@uppy/utils@^3.2.4