{% load wagtailimages_tags %} {% image self.image max-1000x1000 as self_image %} {% if format == 'amp' %} {% else %} {% endif %}