Constructors
constructor
- new Image(data, properties?): Image
Properties
Readonly
data
data: ArrayBuffer
Readonly
properties
Methods
dataUri
- dataUri(): string
Returns string
resize
- resize(newWidth, newHeight): Promise<Image>
Parameters
newWidth: number
newHeight: number
Returns Promise<Image>
transcode
- transcode(options): Promise<Image>
Returns Promise<Image>
Static
downloadFromUrl
- downloadFromUrl(url): Promise<Image>
Returns Promise<Image>
The image class provides basic image manipulation and inspection.
This API is currently considered somewhat unstable, there are bugs here as working with a lot of image formats (and animations) is surprisingly hard
Decoding Formats supported are:
Encoding formats supported:
There are known bugs and issues currently with some of these formats so consider this API to be in beta.