ImageAsset

ImageAsset

An image that has been uploaded to the Framer project. Provides methods to access image data, measure dimensions, and load as bitmap or HTML element.

Methods & Properties

Something that can be rendered within the iFrame. Always the original size of the image

Thumbnail URL of the image.

Optional Alt Text of the image.

The resolution set on the image. Defaults to "auto"

Clone this image asset, optionally overriding altText or resolution. The clone shares the same underlying image data.

Measure this image's natural dimensions.

Get the data such as the bytes of the image. The bytes can be used to manipulate the pixels of the image.

Load this image as ImageBitmap.

Load this image as HTMLImageElement.