Image file dimensions in API and Index Block XML

Back to What's New

Aug 14, 2020

Image file dimensions are now available via Cascade API and Index Blocks. If applicable, an image file's height and width will be included in Index Block XML or can be accessed with a new dimensions property when working with an API object.

Having image dimensions available dynamically can be useful when creating responsive images with a srcset attribute.

image dimensions in Velocity code

For more information, check out our API changelog.