Skip to content

Interface: DecodedImage ​

Defined in: packages/wasm/dist/types.d.ts:11

Result of decoding a container into pixels.

Extends ​

Properties ​

data ​

readonly data: Uint8Array

Defined in: packages/wasm/dist/types.d.ts:8

Inherited from ​

RgbaBuffer.data


height ​

readonly height: number

Defined in: packages/wasm/dist/types.d.ts:7

Inherited from ​

RgbaBuffer.height


icc? ​

readonly optional icc?: Uint8Array<ArrayBufferLike>

Defined in: packages/wasm/dist/types.d.ts:19

The ICC profile the container carried, as stored. Pass it to encode so the output keeps it; the pixels are not colour managed and mean the same only with their profile. Absent when the source declared none.


mimeType ​

readonly mimeType: string

Defined in: packages/wasm/dist/types.d.ts:13

Container the bytes came from, e.g. image/png.


width ​

readonly width: number

Defined in: packages/wasm/dist/types.d.ts:6

Inherited from ​

RgbaBuffer.width