# ImageEditorCrop (@salmonui/editors/image-editor)

> The ImageEditorCrop interface of @salmonui/editors/image-editor: A crop in oriented-image pixels.

Canonical: https://salmonui.dev/docs/reference/editors/image-editor/ImageEditorCrop

```ts
import type { ImageEditorCrop } from '@salmonui/editors/image-editor';
```

Entry index: https://salmonui.dev/docs/reference/editors/image-editor (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/editors/image-editor.md).

## Reference

Kind: interface

```ts
interface ImageEditorCrop {
    readonly x: number;
    readonly y: number;
    readonly width: number;
    readonly height: number;
    readonly shape?: ImageEditorCropShape | undefined;
}
```

A crop in oriented-image pixels.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `x` | `readonly x: number;` |  |  |
| `y` | `readonly y: number;` |  |  |
| `width` | `readonly width: number;` |  |  |
| `height` | `readonly height: number;` |  |  |
| `shape` | `readonly shape?: ImageEditorCropShape \| undefined;` | optional | `'circle'` keeps the inscribed ellipse; the corners export transparent. Default `'rect'`. |
