跳转OSS云存储的压缩规则

This commit is contained in:
gxwebsoft
2024-03-29 15:18:07 +08:00
parent 461e6b45dc
commit e1d8d66905

View File

@@ -264,8 +264,8 @@ public class FileController extends BaseController {
record.setUrl(record.getPath());
if (FileServerUtil.isImage(record.getContentType())) {
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.setUrl(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,w_1680/quality,Q_90");
}
record.setDownloadUrl(record.getPath());
}
@@ -284,8 +284,8 @@ public class FileController extends BaseController {
record.setUrl(requestURL + record.getPath());
if (FileServerUtil.isImage(record.getContentType())) {
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.setUrl(record.getPath() + "?x-oss-process=image/resize,m_fixed,w_100,w_1680/quality,Q_90");
}
record.setDownloadUrl(record.getPath());
}