{% load thumbnail %} {% if file.url.lower|slice:"-3:" == 'svg'%} {% else %} {% thumbnail file "100" crop="top" as img %} {% empty %} ---- {% endthumbnail %} {% endif %}