width
If you are dealing with an attachment that is an image, this property becomes available and indicates the width of the image in pixels if that information is available.
{% for image in this.attachments.images %}
<img src="{{ image|url }}"
width="{{ image.width }}"
height="{{ image.height }}">
{% endfor %}
Comments