CMS
Objects
Image

Image

An image element, that is used to display an image or background.

Code

ImageDto
{
   "minified": "AUMlmbxmKODdcKCsc4ymmyfY=",
   "url":"www.shophub.com",
   "altText":"alt text",
   "width":null,
   "height":null
}

Arguments

minified
string|
null

The minified and base64 string of the image. if left empty, the backend will auto generate the base64 string.

url
string
required

The url of the image.

altText
string|
null

The accessibility alt text of the image.

width
number|
null

The width of the image. If left empty. the backend will auto generate the correct width.

height
number|
null

The height of the image. If left empty. the backend will auto generate the correct height.