关于阿里云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

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值