- Description:
This key represents an individual size definition in the
options.sizesarray for Image Inputs.The value is an object that can contain
sizeandtargetproperties.- Appears in:
- Type:
Object- Properties:
This key defines a number suffixed with "x" (relative size) or "w" (fixed width) for setting the dimensions of the image (e.g. 2x, 3x, 100w, 360w).
Appears in:
sizes[*].Show examplesHide examples
In this example, we have configured a size definition for an Image Input to create a 2x relative size image.
Copied to clipboard_inputs: hero_image: type: image options: sizes: - size: 2x{ "_inputs": { "hero_image": { "type": "image", "options": { "sizes": [ { "size": "2x" } ] } } } }- Examples:
In this example, we have configured a size definition for an Image Input.
Copied to clipboard_inputs: hero_image: type: image options: sizes: - size: 2x target: hero_image_2x{ "_inputs": { "hero_image": { "type": "image", "options": { "sizes": [ { "size": "2x", "target": "hero_image_2x" } ] } } } }