☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

expandable

Table of contents

Description:

This key defines whether you can upscale an image to fit the bounding box while resizing an image prior to upload.

Has no effect if files are not resized.

Appears in:
├── _inputs
│   └── *
│       ├── Rich Text Input
│       │   └── options
│       │       └── expandable
│       ├── File Input
│       │   └── options
│       │       └── expandable
│       └── URL Input
│           └── options
│               └── expandable
└── _editables
    ├── content
    │   └── expandable
    ├── block
    │   └── expandable
    └── image
        └── expandable
Type:
boolean
Default value:
false
Examples:

In this example, we have configured an Image Input to allow upscaling images to fit the bounding box while resizing.

Copied to clipboard
_inputs:
  hero_image:
    type: image
    options:
      width: 1200
      height: 600
      resize_style: cover
      expandable: true
{
  "_inputs": {
    "hero_image": {
      "type": "image",
      "options": {
        "width": 1200,
        "height": 600,
        "resize_style": "cover",
        "expandable": true
      }
    }
  }
}
Open in a new tab