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

prevent_resize_existing_files

Table of contents

Description:

This key toggles whether CloudCannon will skip the image resizing process configured for this input when selecting existing images.

Setting this key to true will skip the image resizing process when selecting existing images.

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

In this example, CloudCannon will skip the image resizing process when selecting existing images for an Image Input.

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