{% load wlimages_extras %} {% for img in images %} {% if img|has_file %} {# Show only one code snippet if the image is greater than 700px #} {% if img.image.width > 700 %} {# provide all options #} {% else %} {% endif %} {% else %} {% endif %}
Name: {{ img.name}}
Properties:
Width:
{{ img.image.width }} px
Height:
{{ img.image.height }} px
Filesize:
{{ img.image.size|filesizeformat }}
Code to use in article:[![{{img.name}}]({{ img.image.url }})]({{ img.image.url }})
![{{img.name}}]({{ img.image.url }})
Right aligned: ![{{img.name}}]({{ img.image.url }}){: .right}
Left aligned: ![{{img.name}}]({{ img.image.url }}){: .left}
!! Could not find the file for this image !!
{{ img.image.name}}
Please inform an admin about this issue
{% endfor %}