chunping преди 3 години
родител
ревизия
d35433b030
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      mp-admin/src/main/java/com/qs/mp/web/controller/common/FileUploadController.java

+ 2 - 2
mp-admin/src/main/java/com/qs/mp/web/controller/common/FileUploadController.java

@@ -265,7 +265,7 @@ public class FileUploadController extends BaseApiController {
             if (pWidth > 750) {
                 float scale = 750f / pWidth;
                 if ("image/png".equals(file.getContentType())) {
-                    Thumbnails.of(outFilePath).scale(scale).outputQuality(0.7)
+                    Thumbnails.of(outFilePath).scale(scale).outputQuality(0.5)
                         .imageType(BufferedImage.TYPE_INT_ARGB).outputFormat("png")
                         .toFile(outFilePath);
                 } else {
@@ -273,7 +273,7 @@ public class FileUploadController extends BaseApiController {
                 }
             }else {
                 if ("image/png".equals(file.getContentType())) {
-                    Thumbnails.of(outFilePath).scale(1f).outputQuality(0.7)
+                    Thumbnails.of(outFilePath).scale(1f).outputQuality(0.5)
                         .imageType(BufferedImage.TYPE_INT_ARGB).outputFormat("png")
                         .toFile(outFilePath);
                 } else {