|
@ -307,12 +307,12 @@ public class ImageService {
|
307
|
307
|
ByteArrayOutputStream os = new ByteArrayOutputStream();
|
308
|
308
|
JpgUtil.cutByPerCent(new ByteArrayInputStream(src), os, x, y, w, h);
|
309
|
309
|
src = os.toByteArray();
|
310
|
|
byte[] li = this.zoomImage(src, this.largeHeadPhotoWidth, this.largeHeadPhotoHeight);
|
|
310
|
// byte[] li = this.zoomImage(src, this.largeHeadPhotoWidth, this.largeHeadPhotoHeight);
|
311
|
311
|
byte[] mi = this.zoomImage(src, this.middleHeadPhotoWidth, this.middleHeadPhotoHeight);
|
312
|
312
|
byte[] si = this.zoomImage(src, this.smallHeadPhotoWidth, this.smallHeadPhotoHeight);
|
313
|
313
|
IoUtil.saveStream(new FileOutputStream(new File(this.headPath, id + "_s.jpg")), si, true);
|
314
|
314
|
IoUtil.saveStream(new FileOutputStream(new File(this.headPath, id + "_m.jpg")), mi, true);
|
315
|
|
IoUtil.saveStream(new FileOutputStream(new File(this.headPath, id + "_l.jpg")), li, true);
|
|
315
|
IoUtil.saveStream(new FileOutputStream(new File(this.headPath, id + "_l.jpg")), src, true);
|
316
|
316
|
}
|
317
|
317
|
|
318
|
318
|
@Post
|