Commit e3bb5d67 authored by cuijun's avatar cuijun

文件压缩500图片格式

parent 2ea05e35
......@@ -174,7 +174,7 @@ public class UploadService {
// 保存压缩后的图片
String compressedFilePath = baseUploadPath + dirPathToday + "/"+ no + lastFormat + "_250";
ImageIO.write(resizedImage, lastFormat.substring(2, lastFormat.length()), new File(compressedFilePath));
ImageIO.write(resizedImage, lastFormat.substring(1, lastFormat.length()), new File(compressedFilePath));
realFileRelPath = xx_url + SystemConfig.XXMP_URL + realFileRelPath;
return realFileRelPath;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment