CanvaImageBlob

Represents an image that is available as a Blob.

Signature

type CanvaImageBlob = {
type: CanvaDataType.CANVA_IMAGE_BLOB;
blob: Blob;
imageType: string;
width: number;
height: number;
};

Properties

Name

Type

Required

Description

type

CanvaDataType.CANVA_IMAGE_BLOB

Yes

This value is always "canva_image_blob".

blob

Blob

Yes

The binary data of the image.

imageType

string

Yes

The MIME type of the image.

width

number

Yes

The width of the image, in pixels.

height

number

Yes

The height of the image, in pixels.