|
@@ -260,9 +260,9 @@ public class FileUploadController extends BaseApiController {
|
|
|
// 压缩图片
|
|
|
if (pWidth > 500) {
|
|
|
float scale = 500f / pWidth;
|
|
|
- Thumbnails.of(outFilePath).addFilter(new ThumbnailsImgFilter()).scale(scale).outputQuality(0.8f).toFile(outFilePath);
|
|
|
+ Thumbnails.of(outFilePath).scale(scale).outputQuality(0.8f).toFile(outFilePath);
|
|
|
}else {
|
|
|
- Thumbnails.of(outFilePath).addFilter(new ThumbnailsImgFilter()).scale(1f).outputQuality(0.8f).toFile(outFilePath);
|
|
|
+ Thumbnails.of(outFilePath).scale(1f).outputQuality(0.8f).toFile(outFilePath);
|
|
|
}
|
|
|
|
|
|
|