关于阿里云oss对象存储图片处理的一些列子总结

一、缩放
操作名称:resize
完整版请到官方文档查看:https://help.aliyun.com/document_detail/44688.html

1、?x-oss-process=image/resize,m_fill,w_300,h_344 //缩放到宽300,搞344,然后超出的部分以中心开始截取
2、?x-oss-process=image/resize,m_fill,w_300,h_344,limit_0 //上面方式可能会出现上传的图小于这个像素,他无法处理,我们就加上limit_0,然他放大截取

二、内切圆
操作名称:circle
完整版请到官方文档查看:https://help.aliyun.com/document_detail/44695.html

三、自定义裁剪
操作名称:crop
完整版请到官方文档查看:https://help.aliyun.com/document_detail/44693.html

四、索引切割
操作名称:indexcrop
完整版请到官方文档查看:https://help.aliyun.com/document_detail/44696.html

五、圆角矩形
操作名称:rounded-corners
完整版请到官方文档查看:https://help.aliyun.com/document_detail/44694.html

六、自适应方向
操作名称:auto-orient
完整版请到官方文档查看:https://help.aliyun.com/document_detail/44691.html

今天暂时整理到这么 后面在补充!

猜你喜欢

转载自blog.csdn.net/likeni1314/article/details/108789135
今日推荐