Rotation Settings
You can edit code on OBS Console or make an API call to rotate images.
This operation rotates images clockwise. For details, see Table 1.
Operation name: rotate
Parameter |
Value Description |
Code Example |
---|---|---|
value |
Rotation angle, clockwise [0, 360]. The default value is 0, which means the image is not rotated. A larger value means the image is clockwise rotated by a larger angle. |
image/rotate,90 |
- After rotation, dimensions of an image may increase.
Example
Set the width to 100 and the rotation angle to 90.
https://obs.region.example.com/image-demo/example.jpg?x-image-process=image/resize,w_100/rotate,90
Set the width to 100 and the rotation angle to 220.
https://obs.example.region.com/image-demo/example.jpg?x-image-process=image/resize,w_100/rotate,220
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot