# ImageResizeOption

interface

The image resize option used in the [image resize configuration](module_image_imageconfig-ImageConfig.md#member-resizeOptions).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-image/src/imageconfig.ts#L509)

<a id="properties">

## Properties

<a id="member-icon">

### `icon?: string`

An icon used by an individual resize button (see the `name` property to learn more). Available icons are: `'small'`, `'medium'`, `'large'`, `'original'`.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-image/src/imageconfig.ts#L530)

<a id="member-label">

### `label?: string`

An option label displayed in the dropdown or, if the feature is configured using individual buttons, a [`tooltip`](module_ui_button_buttonview-ButtonView.md#member-tooltip) and an ARIA attribute of a button. If not specified, the label is generated automatically based on the `value` option and the [`config.image.resizeUnit`](module_image_imageconfig-ImageConfig.md#member-resizeUnit).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-image/src/imageconfig.ts#L538)

<a id="member-name">

### `name: string`

The name of the UI component that changes the image size.

* If you configure the feature using individual resize buttons, you can refer to this name in the [image toolbar configuration](module_image_imageconfig-ImageConfig.md#member-toolbar).
* If you configure the feature using the resize dropdown, this name will be used for a list item in the dropdown.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-image/src/imageconfig.ts#L517)

<a id="member-value">

### `value: string | null`

The value of the resize option without the unit ([configured separately](module_image_imageconfig-ImageConfig.md#member-resizeUnit)). `null` resets an image to its original size.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-image/src/imageconfig.ts#L524)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
