帮助与文档

我们为你提供丰富、详尽的使用指南以及产品文档

图片旋转

用于对图片进行旋转

Request Syntax

GET /<object-name>?image&action=rotate:a_<angle> HTTP/1.1
Host: <bucket-name>.pek3a.qingstor.com
Date: <date>
Authorization: <authorization-string>

Request Parameters

Parameter name Type Description Required
angle int 顺时针旋转角度, 有效值为 0, 90, 180, 270 。 Yes

Request Headers

参见公共请求头

Request Elements

没有请求消息体

Response Headers

参见公共响应头

Response Elements

对象实体内容

Example

Example Request

GET /myphoto.jpg?image&action=rotate:a_90 HTTP/1.1
Host: mybucket.pek3a.qingstor.com
Date: Sun, 16 Aug 2015 09:05:00 GMT
Authorization: authorization string

Example Response

HTTP/1.1 200 OK
Server: QingStor
Date: Sun, 16 Aug 2015 09:05:00 GMT
Last-Modified: Fri, 14 Aug 2015 09:10:39 GMT
Content-Type: image/jpeg
Content-Length: 7987
Connection: close
x-qs-request-id: aa08cf7a43f611
[7987 bytes of object data]