跳转OSS云存储的压缩规则
This commit is contained in:
@@ -264,8 +264,8 @@ public class FileController extends BaseController {
|
|||||||
record.setUrl(record.getPath());
|
record.setUrl(record.getPath());
|
||||||
if (FileServerUtil.isImage(record.getContentType())) {
|
if (FileServerUtil.isImage(record.getContentType())) {
|
||||||
record.setThumbnail(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,h_100/quality,Q_90");
|
record.setThumbnail(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,h_100/quality,Q_90");
|
||||||
record.setUrl(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,w_1680/quality,Q_90");
|
|
||||||
record.setPath(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,w_750/quality,Q_90");
|
record.setPath(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,w_750/quality,Q_90");
|
||||||
|
record.setUrl(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,w_1680/quality,Q_90");
|
||||||
}
|
}
|
||||||
record.setDownloadUrl(record.getPath());
|
record.setDownloadUrl(record.getPath());
|
||||||
}
|
}
|
||||||
@@ -284,8 +284,8 @@ public class FileController extends BaseController {
|
|||||||
record.setUrl(requestURL + record.getPath());
|
record.setUrl(requestURL + record.getPath());
|
||||||
if (FileServerUtil.isImage(record.getContentType())) {
|
if (FileServerUtil.isImage(record.getContentType())) {
|
||||||
record.setThumbnail(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,h_100/quality,Q_90");
|
record.setThumbnail(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,h_100/quality,Q_90");
|
||||||
record.setUrl(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,w_1680/quality,Q_90");
|
|
||||||
record.setPath(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,w_750/quality,Q_90");
|
record.setPath(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,w_750/quality,Q_90");
|
||||||
|
record.setUrl(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,w_1680/quality,Q_90");
|
||||||
}
|
}
|
||||||
record.setDownloadUrl(record.getPath());
|
record.setDownloadUrl(record.getPath());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user