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_filesType
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
}
}
}
}