{# {{ img(url="", alt="", caption="", resize=false, allow_tall=false) }} #} {% set article_width = 960 %} {% if resize %} {% set effective_image = resize_image(path=url, width=article_width, op="fit_width") %} {% else %} {% set effective_image = get_image_metadata(path=url) %} {% endif %} {% set crop_height = config.extra.image_vertical_crop_height | default(value=768) %} {% set cropped = effective_image.height > crop_height and not allow_tall %}
{{ alt }} {% if caption or resize or cropped %}
{% if caption %}
{{ caption | safe }}
{% endif %} {% if resize or cropped %}↗️ full size{% endif %}
{% endif %}