|
@@ -30,7 +30,7 @@ function imageSizeIsLessLimitSize(imagePath, limitSize) {
|
|
function getLessLimitSizeImage(imagePath, quality) {
|
|
function getLessLimitSizeImage(imagePath, quality) {
|
|
uni.compressImage({
|
|
uni.compressImage({
|
|
src: imagePath,
|
|
src: imagePath,
|
|
- quality,
|
|
|
|
|
|
+ quality: quality * 100,
|
|
success: (res) => {
|
|
success: (res) => {
|
|
console.log(res.tempFilePath, res, "压缩后");
|
|
console.log(res.tempFilePath, res, "压缩后");
|
|
_resolve(res.tempFilePath);
|
|
_resolve(res.tempFilePath);
|