Skip to main content

FreeToolCalculateCropResponse

crop object

The part of the source image to keep, in source pixels.

xinteger
yinteger
widthinteger
heightinteger
output object

Size of the finished image in pixels.

widthinteger
heightinteger
image object

Where the kept part is drawn in the finished image (contain leaves a margin).

xinteger
yinteger
widthinteger
heightinteger
scalenumber

Output pixels per source pixel, 4 decimals.

upscaledboolean

True when the source is enlarged (scale above 1), which can look soft.

FreeToolCalculateCropResponse
{
"crop": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
},
"output": {
"width": 0,
"height": 0
},
"image": {
"x": 0,
"y": 0,
"width": 0,
"height": 0
},
"scale": 0,
"upscaled": true
}