|
|
@ -259,9 +259,9 @@ |
|
|
const self = this; |
|
|
const self = this; |
|
|
if (newFile.file && newFile.type.substr(0, 6) === "image/") { |
|
|
if (newFile.file && newFile.type.substr(0, 6) === "image/") { |
|
|
new Compressor(newFile.file, { |
|
|
new Compressor(newFile.file, { |
|
|
quality: 0.9, |
|
|
|
|
|
maxWidth: 3300, |
|
|
|
|
|
maxHeight: 3300, |
|
|
|
|
|
|
|
|
quality: 0.8, |
|
|
|
|
|
maxWidth: 2100, |
|
|
|
|
|
maxHeight: 2100, |
|
|
convertSize: Infinity, |
|
|
convertSize: Infinity, |
|
|
success(result) { |
|
|
success(result) { |
|
|
self.$refs.upload.update(newFile, { |
|
|
self.$refs.upload.update(newFile, { |
|
|
|