Skip to content

Scrypted Documentation / Image

Interface: Image ​

Properties ​

width ​

width: number


height ​

height: number


format? ​

optional format: string

The in raw memory format of this image. Operations of this image may only safely request this format, or a compressed format such as jpg.


ffmpegFormats? ​

optional ffmpegFormats: boolean

Methods ​

toBuffer() ​

toBuffer(options?): Promise<Buffer>

Parameters ​

• options?: ImageOptions

Returns ​

Promise<Buffer>


toImage() ​

toImage(options?): Promise<Image & MediaObject>

Parameters ​

• options?: ImageOptions

Returns ​

Promise<Image & MediaObject>


close() ​

close(): Promise<void>

Returns ​

Promise<void>