My templates are over the clipping size for Gmail due to the Product Block using full size image src from Shopify. I can see in event properties when looking at the data that there is a thumb_src for line_items. Is there a possibility to use that instead?
Cheers
Chris
Page 1 / 1
Hi @ChrisTough,
Clipping only takes place when the html code of the email exceeds 102kb. Image size has nothing to do with this.
The good thing is that Klaviyo has started adding an email clipping warning to the preview section of emails so that should help.
Klaviyo - CRO - Customer Value Optimization Specialist
Hi Omar, Thanks for the response. Given your answer, I think the problem may have multiple parts now.
Email clipping
Image file size too large
Point one is solved thanks to your answer of reducing sections which we’ll do.
Unfortunately for point 2, I think the product images coming from our catalogue are the original size (2000px x 3000px) and not the thumbnail source forcing the templates to resize the large images which breaks in certain clients.
I found a similar thread with an answer which will be useful to part solve some sections with using a dynamic table block.
However it doesn’t solve the issue when we need to use the product block. Will investigate more. Thanks again.
@ChrisTough I have been using this took to resize images before adding to klaviyo;https://squoosh.app/
It has helped a lot with image size/ loading speed etc, quite amazing how much smaller it can make your images without losing definition.
Sean
Hi Sean. Thanks for your response. Yeah we’ve used squoosh in the past. On our storefront, we’re able to transform the images by appending `_WIDTHxHEIGHT` to the end of the filename. e.g
This allows us to use Shopify’s image transform feature to handle images responsively for different parts of the site so we don’t worry what marketing uploads.
My issue with the Product Block, is it uses the full size image source when I can see in event data that there’s also a thumbnail source which is provided. I’m not sure if it’s Klaviyo’s or Shopify’s API that is doing this, and if it’s available for the Product Block as it is when using a Dynamic Table block.
Hello, did you find any solution for this issue? Thank you
Natan
Hi Sean. Thanks for your response. Yeah we’ve used squoosh in the past. On our storefront, we’re able to transform the images by appending `_WIDTHxHEIGHT` to the end of the filename. e.g
This allows us to use Shopify’s image transform feature to handle images responsively for different parts of the site so we don’t worry what marketing uploads.
My issue with the Product Block, is it uses the full size image source when I can see in event data that there’s also a thumbnail source which is provided. I’m not sure if it’s Klaviyo’s or Shopify’s API that is doing this, and if it’s available for the Product Block as it is when using a Dynamic Table block.
Hi Natan, I did not unfortunately. We had to accept the issue and is still part of our technical debt.