HTTP - Delivery
Image transformations
Created by j.moore, last modified by r.turner on 15 Sep 2020
The transformation object represents the transformations that will be applied to the image using the Image API.
Properties
Name | Data type | Description |
---|---|---|
size | object | The image height and width resize transformations |
flip | string | The orientation flip name to apply |
rotate | integer | The image rotation in degrees |
crop | object | The image crop details specifying width and height, and x and y coordinates |
quality | integer | The quality in percentage |
Example
{
"poster": {
"asset": {
"sys": {
"id": "fab3fdc6-89fd-4efa-bfe0-30722fb87661",
"dataFormat": "asset"
}
},
"caption": "Interstellar Movie Poster",
"transformations": {
"size": {
"height": 100,
"width": 100
},
"flip": "h",
"rotate": 95,
"crop": {
"width": 100,
"height": 100,
"x": 10,
"y": 20
},
"quality": 95
}
}