Image Generation in Open Time Email Campaigns

Open Time Email (OTE) campaigns and templates use image generation as a background process. When you publish an OTE template, the image generation process kicks off and determines whether eligible products and associated OTE Item Templates need images. It then creates an initial set of images for all items that match the item type of the template and stores them on the Marketing Cloud Personalization CDN. The images generated by this process appear in the OTE Simulator and the emails you provision via OTE campaigns.

The following table describes common problems that can occur with images in OTE campaigns and their causes.

ProblemCauses
Missing or invisible imagesOccurs because there was an error in processing an image generation, which could be due misconfiguration, such as when using locales, or customer CDN throttling limits.
Blurry imagesAdding style, height, and width tags can cause blurriness. These tags aren’t necessary in order to generate images. In fact, images without style tags appear crisper.
Differences between OTE Simulator and test emailsOccurs due to an error with the customerID in the test email or because the recipe returns a different result when the test email is opened.
Differences between OTE Simulator and Recipe Simulator or OTE Item Template previewOccurs because the OTE Simulator uses the images in the CDN, whereas the other features providing previews or simulation don’t.
Differences between images and current product dataOccurs because the product and item template pair hasn’t been identified as needing image generation. Products are tagged for image generation only if they meet eligibility requirements and have properties referenced in a published item template that have changed values. Factors that determine image generation eligibility:
  • Products must be eligible, NOT archived, NOT expired, have a name, URL, imageURL, and be in stock (that is, inventory > 0) in order to be considered.
  • If the imageURL doesn't change but the image at the URL is modified, the CDN image doesn't get updated.
  • If a product's values not referenced in the OTE item template are altered, the CDN image for that product and item template pair will not be updated.
  • If locales are enabled, there may be issues if the default locale is not properly set.
  • Image generation errors that occur due to customer throttling limits are outside of the control of Marketing Cloud Personalization. These errors usually appear as default transparent pixel images, or erroneous images with missing data. You can find additional error information in internal logs.

    There are a few things you can do to troubleshoot and fix issues related to images in OTE campaigns and templates.

    To fix throttling issues, see if adding the following user agent and HTTP headers to an allowlist to either avoid throttling or have a higher threshold:

    WhereAdd to Allowlist
    HTTP Header'X-Salesforce-Agent': 'Interaction Studio Open-Time Email Image Generator
    User AgentMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36 Salesforce (InteractionStudio)

    You can improve the clarity of images in your templates by making a few changes to your Personalization OTE and Salesforce Marketing Cloud templates.

    1. Clone the Personalization OTE template with blurry images.

    2. Add the exact HTML comment <!--useHidpi--> to any valid HTML position in the template. For example, you can prepend the HTML comment at the beginning of the OTE template.

      This comment is case-sensitive.

    1. Specify width constraints for the Personalization OTE template's image slots. For example, if the image slots on your Personalization OTE template are 190 px wide:

      • Add the attribute width="190" (without px) to the <img> tag that uses the OTE image as its src.
      • Modify the style attribute to include width: 100%; max-width: 190px.

      The width and height of image containers could require adjustments based on the HTML structure and desired final appearance. Keep in mind that standard CSS rules apply when using OTE images in HTML documents.

    2. Use the template in a new campaign that uses the cloned HiDPI version of the original Personalization OTE template.

      If you've already deployed the original campaign with blurry images, you must carry out this step in production.