height

If you are dealing with an attachment that is an image, this property becomes available and indicates the height of the image in pixels if that information is available.

Example

{% for image in this.attachments.images %}
  <img src="{{ image|url }}"
    height="{{ image.height }}"
    height="{{ image.height }}">
{% endfor %}

Comments