Display customized images
With image optimization and art direction in mind, let’s go through how to display customized images in your app so that they appear just as content creators intended.
How customized images are stored
Behind the scenes, customized images are stored as asset renditions with metadata describing how to transform the original image. The following JSON example from Delivery API shows an asset element containing the image. Notice therenditions
property in the asset’s value
, which specifies how to customize the image.
query
to the asset’s url
.
Display customized images
When you get a content item with an asset element, check if the asset element specifies an asset rendition and then apply the rendition. Content creators can create only a single customization per image, so it’s safe to use the default rendition for all images.