CanvaMedia

Represents an image as a collection of CanvaImageUrl objects. Each object corresponds to a different resolution of the image:

  • thumbnail

  • preview

  • full

Signature

type CanvaMedia = {
type: CanvaDataType.CANVA_MEDIA;
thumbnail: CanvaImageUrl;
preview: CanvaImageUrl;
full: CanvaImageUrl;
};

Properties

Name

Type

Required

Description

type

CanvaDataType.CANVA_IMAGE_MEDIA

Yes

This value is always "canva_media".

thumbnail

CanvaImageUrl

Yes

A low-resolution version of the image.

preview

CanvaImageUrl

Yes

A medium-resolution version of the image.

full

CanvaImageUrl

Yes

A high-resolution version of the image.