Image
Content blocksImage
A responsive image with an optional link.
Options#
- Source URL (upload, stock, S3, Drive) + alt text
- Width (auto or fixed %), alignment, padding
- Optional destination link
- Double-click to open the image editor (crop/rotate/filters)
How it exports
- An image with no source is left out of the email.
- The
<img>gets a pixelwidthattribute worked out from its column (for Outlook) andmax-width:100%, so it shrinks on a phone. - The source can be an
https://orhttp://address, acid:reference, adata:image/URI or a merge tag such as{{avatar_url}}. A source with another scheme, such asjavascript:, is exported empty. - Merge tags in the source and alt text are filled at export.
- A linked image opens in a new tab by default (
target="_blank"). In the AMP export it becomes an<amp-img>.
Defaults and text wrap
A new image is 100% wide and centered, with 10px padding and an 18px corner radius. Set text_wrap to left or right to float it beside the content that follows in the same column. Outlook desktop ignores the float, so there the content stacks under the image.
The QA checks warn about an image without alt text. For vector files, see SVG images.