When working with email templates in Klaviyo, you can manage images during the email template creation process itself. While there is an Image Library tab in your account, you will also have full access to this library -- including the option to upload new images -- from the Edit Content section of an email template.
Insert an Image Block
The easiest way to upload images into Klaviyo is to simply drag the images from your computer into the template:
Each image you drag into a template will create a separate image block. Alternatively, you can drag an image block into the template first and then choose which image to include.
Once you place the image block, you'll be prompted to add your image by:
- Dropping an image into the block for instant upload
- Browsing your computer to find and upload an image
- Importing from a URL
- Choosing an image from your image library
- Choosing an image from your product catalog (if you are integrated with an ecommerce platform)
- Inserting a placeholder URL or variable sequence if you want an image to dynamically populate (for flows only)
If you are uploading an image, the maximum image size you can upload is 5 MB.
Edit an Image
To edit an inserted image, click on the image in your template and navigate to the Block section on the left-hand panel. Here, you can adjust the following:
- Set the alt text for an image
- Add a hyperlink to the image
- Edit the width of the image
- Adjust the image's alignment
- Choose to stretch the image to fill the full block dimension
- Edit the image
If you click the blue Edit Image link, a photo editor window will open. Here, you can choose from an array of photo editing features ranging from resizing the image to adjusting the image's coloring. You can also draw over an image, or overlay text.
Edit Image Block Settings
When you click on the image in your template, you will also have the option to adjust Block Styles. Here, you can:
- Change the background color of your image block
- Add a border
- Adjust padding
- Update mobile optimization settings
Images in Uploaded HTML Templates
For HTML templates you copy into Klaviyo (with the exception of MailChimp templates), you'll upload a zip file containing your images during the import process.
For MailChimp templates specifically, if you upload a template that contains images already loaded in MailChimp, Klaviyo will automatically copy over all of these images.
Once you've uploaded an image, you can use the Insert Image button to upload new images for that template:
If you are concerned that your images are not rendering as cleanly or crisply as you'd like, you can improve image quality.
One of the prevailing standards for improving the crispness of a rendered image in an email is to insert an image 2x the desired size and then reduce the image size in your template. There are two ways to approach this:
- Insert a large, crisp version of your image into your template, then click Edit Image and resize to your preferred dimensions
- Insert a natively larger image (i.e. 600px wide) and display at a smaller size (i.e. 300px width) using CSS; to take this approach, you'll need to insert your image into a text block and adjust the CSS source code (see the "Image Mapping" section)
Klaviyo supports three different image types: JPEG, PNG, and GIF.
If you have a PSD, SVG, or another file format, you'll have to convert it to one of the above image types.
To learn more about which image types are the best for your email, click here.
When you insert an image block into your template, you can add a link so the image is hyperlinked to a specific URL destination.
Image mapping is the process of creating a list of coordinates that map across a single image in order to hyperlink areas of the image to different destinations. In other words, you can have different areas of an image link to different places.
Klaviyo doesn't have a built-in image mapping tool, but it's possible to build your own image map and use it in Klaviyo. You can custom code your own image map from scratch, or use a third-party web tool that allows you to build an image map and then copy the code into your template.
If you would like to use a pre-built image map, you must first insert your image into a text block, since you can't edit the source code for an image block.
After inserting your image into a text block, you can click the Source button and view the source code for the inserted image. Here, you can insert the additional code for your image map.
We also recommend checking out the following articles from our blog: