diff --git a/docs/topics/images/using_in_templates.rst b/docs/topics/images/using_in_templates.rst index 4ce97761f8..7e1f80a3a0 100644 --- a/docs/topics/images/using_in_templates.rst +++ b/docs/topics/images/using_in_templates.rst @@ -146,7 +146,7 @@ Wagtail can assign the image data to another variable using Django's ``as`` synt {% image self.photo width-400 as tmp_photo %} {{ tmp_photo.alt }} + height="{{ tmp_photo.height }}" alt="{{ self.photo.title }}" class="my-custom-class" /> This syntax exposes the underlying image "Rendition" (``tmp_photo``) to the developer. A "Rendition" contains just the information specific to the way you've requested to format the image i.e dimensions and source URL.