OSS是使用通过URL尾部的参数指定图片的缩放大小
图片路径后面拼接如下路径:
?x-oss-process=image/[处理类型],x_100,y_50[宽高等参数]
?x-oss-process=image/resize,m_fill,h_高度,w_宽度,limit_0
示例:
原图:
http://qunxianghui-upload.oss-cn-hangzhou.aliyuncs.com/upload/image/20180829/84cb48ea3923c827481787b8877f9260.jpeg
缩略图:(注意:复制下面链接到浏览器中访问,直接点击可能后面参数带不过去)
http://qunxianghui-upload.oss-cn-hangzhou.aliyuncs.com/upload/image/20180829/84cb48ea3923c827481787b8877f9260.jpeg?x-oss-process=image/resize,m_fill,h_100,w_200
作者:尕夜寻欢
原文:https://blog.csdn.net/lw545034502/article/details/82189517