OSS获取视频第一帧方法:
视频地址+?x-oss-process=video/snapshot,t_1000,m_fast
例:https://video.aliyunoss.com/1.mp4?x-oss-process=video/snapshot,t_1000,m_fast
(t-1000后边的数字就是截取的帧数)
oss压缩图片的方法:
图片地址+?x-oss-process=image/resize,m_fill,w_40,h_40/quality,q_50
w–>宽度 px
h—>高度 px
q–> 压缩质量 %
更多灵活配置见阿里云文档:对象存储 OSS > 开发指南 > 数据处理 > 图片处理指南 > 图片处理参数 > 图片缩放
https://help.aliyun.com/document_detail/44685.html
原文链接:https://blog.youkuaiyun.com/zlfjavahome/article/details/127884427