Overview
The image element allows you to embed images into your notifications. Images can be aligned, sized, linked, and include alt text for accessibility. When to use:- Display logos, product images, or illustrations
- Add visual elements to enhance notifications
- Create clickable image banners
- Include user avatars or profile pictures
Basic Example
Fields
The type of element. For image elements, this value must be
"image".The source URL of the image. Must be a publicly accessible URL or a URL from your Asset Manager.
Alternate text for the image. Used by screen readers and displayed when the image cannot be loaded. Important for accessibility.
A URL to link to when the image is clicked. Makes the image clickable.
CSS width properties to apply to the image. Can be:
- Fixed:
"200px","300px" - Percentage:
"50%","100%" - Auto:
"auto"
The alignment of the image. One of
"center", "left", "right", or "full". Defaults to "center".Region-specific content for localization. Can localize
src (image URL) and href (link URL). See the Locales documentation for more details.An array of channel names. The image will only be rendered for the specified channels. See Control Flow documentation for details.
Examples & Variants
Basic Image
Simple image with alt text:Clickable Image
Image that links to a URL:Sized and Aligned Image
Control image size and alignment:Localized Image
Use different images for different locales:Channel-Specific Image
Show different images per channel:Full-Width Banner
Full-width banner image:Best Practices
- Always include alt text: Essential for accessibility and when images fail to load
- Use appropriate sizes: Optimize images for email (typically max 600px width)
- Use HTTPS URLs: Ensure image URLs use HTTPS for security
- Consider channel differences: Images may render differently in email vs push notifications
- Optimize file sizes: Large images can slow down email loading
- Test image loading: Verify images are publicly accessible and load correctly
Channel Support
- Email: ✅ Full support with alignment, sizing, and linking
- Push: ✅ Supported (typically as notification icon or banner)
- SMS: ❌ Not supported (text-only channel)
- Inbox: ✅ Full support
Related Elements
- Action Element - For clickable buttons and links
- Text Element - For text content alongside images
- Columns Element - For layouts with images and text side-by-side
- Locales - For localizing image URLs and links