|
|
@ -153,6 +153,7 @@ public class FileUploadServiceImpl implements IFileUploadService {
|
|
|
|
int startY = height /100 * widthStart.intValue();
|
|
|
|
int startY = height /100 * widthStart.intValue();
|
|
|
|
int endY = height /100 * (heightStart.intValue() - widthStart.intValue());
|
|
|
|
int endY = height /100 * (heightStart.intValue() - widthStart.intValue());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.info("cutInfo :" +height +" "+width+" "+startY+" "+endY);
|
|
|
|
//剪切
|
|
|
|
//剪切
|
|
|
|
ImgUtil.cut(image, FileUtil.file(cutDest), new Rectangle(0, startY, width, endY));
|
|
|
|
ImgUtil.cut(image, FileUtil.file(cutDest), new Rectangle(0, startY, width, endY));
|
|
|
|
|
|
|
|
|
|
|
|