产品动态
产品公告
cos:GetObject。cos:PutObject。cos:PutObject。GET /<ObjectKey>?imageMogr2/animate/duration/<duration>/images/<imageurl1>/<imageurl2> HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>
PUT /<ObjectKey> HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth StringPic-Operations:{"is_pic_info": 1,"rules": [{"fileid": "exampleobject","rule": "imageMogr2/animate/duration/<duration>/images/<imageurl1>/<imageurl2>"}]}
POST /<ObjectKey>?image_process HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateContent-length: SizeAuthorization: Auth StringPic-Operations:{"is_pic_info": 1,"rules": [{"fileid": "exampleobject","rule": "imageMogr2/animate/duration/<duration>/images/<imageurl1>/<imageurl2>"}]}
fileid 与 ObjectKey 相同时,处理后的图片将覆盖原图存储;不相同时将分别存储原图和处理后图片。fileid 的值需要经过 URLEncode。参数 | 参数说明 | 类型 | 是否必填 |
ObjectKey | COS 中的文件名称,例如 folder/sample.jpg,在这里将作为合成后的动图第一帧。 | String | 是 |
duration | GIF 动图的每帧间隔时间(单位: ms),取值为大于0的整数。例如设置间隔为10ms,则参数为/duration/10。 | Int | 是 |
images | 待合成的图片原图链接,最多可添加19个,需要经过 URL安全 Base64编码。例如原图1的链接经过编码后的字符串为 ahxxxxxxxxxmc,原图2的链接经过编码后的字符串为wywxxxxxxxxjih,则参数为 /images/ahxxxxxxxxxmc/wywxxxxxxxxjih。 | String | 是 |
http://examples-125xxxxxx.cos.ap-shanghai.myqcloud.com/image-1.jpg?imageMogr2/animate/duration/50/images/aHR0cDovL2V4YW1wbGVzLTEyNXh4eHh4eC5jb3MuYXAtc2hhbmdoYWkubXlxY2xvdWQuY29tL2ltYWdlLTIuanBn
http://examples-1251000004.cos.ap-shanghai.myqcloud.com/sample.jpeg?q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1593342360;1593342720&q-key-time=1593342360;1593342720&q-header-list=&q-url-param-list=watermark%252f1%252fimage%252fahr0cdovl2v4yw1wbgvzlteyntewmdawmdqucgljc2gubxlxy2xvdwquy29tl3nodwl5aw4uanbn%252fgravity%252fsoutheast&q-signature=****************************************&watermark/1/image/aHR0cDovL2V4YW1wbGVzLTEyNTEwMDAwMDQucGljc2gubXlxY2xvdWQuY29tL3NodWl5aW4uanBn/gravity/southeast
文档反馈