Skip to main content

An image type is a container of an image asset with an associated caption.

Properties

Name Type Format Description
asset object Asset The asset that is linked to from the entry.
caption string   The image caption, defined in the entry.

Note The caption property allows instance specific text to be associated with a linked image asset.

Example

JavaScript

ContensisClient.entries.get({ id: '<entry_id>', linkDepth: 1 }).then(function (entry) {
    console.log(entry.thumbnailImage.asset.sys.uri);
    console.log(entry.thumbnailImage.altText);
    console.log(entry.thumbnailImage.asset.sys.properties.width);
    console.log(entry.thumbnailImage.asset.sys.properties.height);
});

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request