|
@@ -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 {
|