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

> The ImageEditorTransform interface of @salmonui/editors/image-editor: Geometry of the edit. Every field is optional; omitted means neutral.

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

```ts
import type { ImageEditorTransform } 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 ImageEditorTransform {
    readonly crop?: ImageEditorCrop | null | undefined;
    readonly rotation?: number | undefined;
    readonly straighten?: number | undefined;
    readonly flip?: ImageEditorFlip | undefined;
    readonly resize?: {
        readonly width: number;
        readonly height: number;
    } | null | undefined;
    readonly zoom?: number | undefined;
}
```

Geometry of the edit. Every field is optional; omitted means neutral.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `crop` | `readonly crop?: ImageEditorCrop \| null \| undefined;` | optional | `null` or omitted: the whole oriented image. |
| `rotation` | `readonly rotation?: number \| undefined;` | optional | Clockwise degrees in 90-degree steps (normalized to 0, 90, 180, 270). |
| `straighten` | `readonly straighten?: number \| undefined;` | optional | Straighten angle in degrees, -45 to 45; the image scales up so no empty corner shows. |
| `flip` | `readonly flip?: ImageEditorFlip \| undefined;` | optional |  |
| `resize` | `readonly resize?: {     readonly width: number;     readonly height: number; } \| null \| undefined;` | optional | Output size in pixels; `null` or omitted keeps the crop size. |
| `zoom` | `readonly zoom?: number \| undefined;` | optional | Committed view zoom; 1 fits the image into the canvas. Not an edit (no history entry). |
