Choose an image format
Consult the original Can I email WebP tests, linked SVG tests, and AVIF tests. Check test dates and client versions; aggregate support estimates do not guarantee rendering for your audience. Reviewed October 20, 2026.
Set dimensions before compression
For a template with a 600px content area, start with a 1200px-wide source for a full-width image when high-density display quality matters, then render it at 600px. Smaller placements need smaller source images. This is a starting point, not a required email width.- Crop to the final aspect ratio.
- Resize to the pixels the placement needs.
- Export JPEG for photos or PNG for transparent artwork.
- Reduce quality or optimize losslessly, checking text and edges after export.
- Measure the resulting download size and test on a slow connection.
Make images responsive and accessible
Use a public HTTPS image URL that recipients can load without cookies, authentication, or an expiring session. Serve the correct image content type. A successful browser preview alone does not establish inbox compatibility.alt="" for purely decorative images. When an image is the only content of a link, its alt text should explain the link destination or action. Keep calls to action, verification codes, prices, and deadlines as readable HTML text. Check transparent logos against both light and dark backgrounds.
Test the delivered email
Send the final template to test accounts in Gmail web and mobile, Apple Mail, Outlook.com, and classic Outlook for Windows where relevant to your audience. Check actual delivery rather than relying only on a browser preview.- Confirm the image URL loads without being signed in.
- Check narrow screens, high-density displays, and light and dark mode.
- Block remote images and verify the message and links remain understandable.
- Check GIF first frames and whether animation plays.
- Inspect download size and visual quality after any image proxy or conversion.
Prepare images before sending with Mailofly
Use the optimized image URL in thehtml field of your send email request. Do not assume that sending HTML through an API automatically compresses, converts, or hosts its images. Prepare and host assets before sending, then test the delivered message.
For context, Resend’s October 19, 2026 editor release adds compression and format conversion before upload. Those are editor-specific behaviors, not universal email-client capabilities.