Commit b263ae14 authored by 刘基明's avatar 刘基明

压缩图片

parent 6e7ac7a7
......@@ -22,6 +22,9 @@ public class ImagesDTO {
@ApiModelProperty("图片url")
private String remark;
@ApiModelProperty("压缩图片url")
private String resizeUrl;
@ApiModelProperty("图片宽度")
private Integer imgHeight;
......
......@@ -349,7 +349,7 @@ public class ThemeManager {
if (o.getImgList() != null) {
for (ImagesDTO imagesDTO : o.getImgList()) {
if (StringUtils.isNotBlank(imagesDTO.getRemark()))
imagesDTO.setRemark(imagesDTO.getRemark()+"?x-oss-process=image/resize,p_10");
imagesDTO.setResizeUrl(imagesDTO.getRemark()+"?x-oss-process=image/resize,p_50");
}
}
});
......
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