Image Focus
A point of a picture as fractions of its width and height, from the top-left corner. A cover fit centers this point in the frame as far as the picture still covers the frame, so it always stays in view: { x: 0.5, y: 0.5 } (the default) is a center crop, { x: 0, y: 0 } keeps the top-left corner.
Metadata
Field index
x
typenumberrequiredyesdefault—
Horizontal position, 0 (left edge) to 1 (right edge).
y
typenumberrequiredyesdefault—
Vertical position, 0 (top edge) to 1 (bottom edge).
Complete definition constraints
{
"type": "object",
"additionalProperties": false,
"required": [
"x",
"y"
],
"description": "A point of a picture as fractions of its width and height, from the top-left corner. A cover fit centers this point in the frame as far as the picture still covers the frame, so it always stays in view: { x: 0.5, y: 0.5 } (the default) is a center crop, { x: 0, y: 0 } keeps the top-left corner.",
"properties": {
"x": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Horizontal position, 0 (left edge) to 1 (right edge)."
},
"y": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Vertical position, 0 (top edge) to 1 (bottom edge)."
}
},
"examples": [
{
"x": 0.5,
"y": 0.7
}
]
}