download_url?imageMogr2/format/heif
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/format/heif"}]}
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/format/heif"}]}
参数 | 含义 |
download_url | 文件的访问链接,具体构成为<BucketName-APPID>.cos.<Region>.myqcloud.com/<picture name>, 例如 examplebucket-1250000000.cos.ap-shanghai.myqcloud.com/picture.jpeg 。 |
/format/<Format> | 压缩格式,此处为 heif。 |
http://example-1258125638.cos.ap-shanghai.myqcloud.com/sample.png?imageMogr2/format/heif
格式 | 图片大小 |
png(原图) | 1335.2KB |
heif | 52.87KB(压缩率96.0%) |
本页内容是否解决了您的问题?