|
@@ -86,7 +86,7 @@ module.exports = class ThumbnailGenerator extends Plugin {
|
|
const dimensions = this.getProportionalDimensions(image, targetWidth, targetHeight, orientation.deg)
|
|
const dimensions = this.getProportionalDimensions(image, targetWidth, targetHeight, orientation.deg)
|
|
const rotatedImage = this.rotateImage(image, orientation)
|
|
const rotatedImage = this.rotateImage(image, orientation)
|
|
const resizedImage = this.resizeImage(rotatedImage, dimensions.width, dimensions.height)
|
|
const resizedImage = this.resizeImage(rotatedImage, dimensions.width, dimensions.height)
|
|
- return this.canvasToBlob(resizedImage, 'image/png')
|
|
|
|
|
|
+ return this.canvasToBlob(resizedImage, 'image/jpeg', 80)
|
|
})
|
|
})
|
|
.then(blob => {
|
|
.then(blob => {
|
|
return URL.createObjectURL(blob)
|
|
return URL.createObjectURL(blob)
|