FreeToolCalculateCropRequest
widthintegerrequired
Source image width in pixels.
Possible values: >= 1 and <= 100000
heightintegerrequired
Source image height in pixels.
Possible values: >= 1 and <= 100000
networkstring
Network key from getImageSizes (network_key), e.g. instagram. With format, picks the target size.
Possible values: <= 64 characters
formatstring
Format key from getImageSizes (format_key), e.g. feed-square.
Possible values: <= 64 characters
target_widthinteger
Target width in pixels, instead of network + format.
Possible values: >= 1 and <= 100000
target_heightinteger
Target height in pixels, instead of network + format.
Possible values: >= 1 and <= 100000
fitstring
cover crops to fill the target; contain keeps the whole image and centres it.
Possible values: [cover, contain]
Default value:
coverFreeToolCalculateCropRequest
{
"width": 0,
"height": 0,
"network": "string",
"format": "string",
"target_width": 0,
"target_height": 0,
"fit": "cover"
}