# Interface ImageURLOptions

interface ImageURLOptions {
cut?: [x: number, y: number, width: number, height: number];
forceUseExifOrientation?: boolean;
format?: "webp" | "avif" | "heif" | "jpg" | "jpeg" | "png" | "heic";
key: string;
mappings?: ImageURLMappings;
quality?: number;
sharpen?: number;
size?: number;
}

- Defined in lib/five/utils/imageURL.ts:25

##### Index

### Properties

cut?
forceUseExifOrientation?
format?
key
mappings?
quality?
sharpen?
size?

## Properties

### `Optional` cut

cut?: [x: number, y: number, width: number, height: number]

图片裁切

- Defined in lib/five/utils/imageURL.ts:40

### `Optional` forceUseExifOrientation

forceUseExifOrientation?: boolean

腾讯云在做裁切, 旋转等操作时，需要此参数，应用 exif orientation

- Defined in lib/five/utils/imageURL.ts:46

### `Optional` format

format?: "webp" | "avif" | "heif" | "jpg" | "jpeg" | "png" | "heic"

图片格式参数

- Defined in lib/five/utils/imageURL.ts:37

### key

key: string

图片类型标识

- Defined in lib/five/utils/imageURL.ts:28

### `Optional` mappings

mappings?: ImageURLMappings

域名匹配规则

- Defined in lib/five/utils/imageURL.ts:49

### `Optional` quality

quality?: number

图片质量参数(0-100)

- Defined in lib/five/utils/imageURL.ts:34

### `Optional` sharpen

sharpen?: number

锐化参数 海外不支持

- Defined in lib/five/utils/imageURL.ts:43

### `Optional` size

size?: number

图片尺寸参数 尽量使用 2 的幂次 如 256 512 1024

- Defined in lib/five/utils/imageURL.ts:31