Improving Dynamic Media preview performance in Adobe Experience Manager

Adobe Experience Manager (AEM) Dynamic Media may take several seconds to generate previews for new, unique product designs because each design must be composited at the requested resolution on the first request, especially for high-resolution images or large artwork files. To resolve the issue, reduce preview resolution and artwork size, simplify preview templates, and review network and cache behavior if delays persist.

Description description

Environment

Adobe Experience Manager (AEM) Dynamic Media (all versions)

Issue/Symptoms

  • New, unique preview images may take several seconds to generate.
  • Repeated requests to the same preview URL are significantly faster because of caching.
  • High-resolution previews or previews that use large uploaded artwork files experience the longest delays.

Root cause

Dynamic Media must composite each new, unique design at the requested resolution on the first request. This process is resource-intensive, especially for high-resolution images or complex templates. After the preview is generated, it’s cached, allowing subsequent requests to be served more quickly.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Use a lower resolution for on-screen previews:

    • Configure preview images to use a dedicated size suitable for screen display, for example, 1000–1200 pixels on the long side, instead of print-quality resolutions.
    • Reserve high-resolution renders for final, print-ready proofs.
  2. Limit the size of uploaded artwork for previews:

    • Restrict the dimensions and file size of customer-uploaded artwork used for preview generation.
    • Store or generate a web-optimized version of the artwork for previews, and use full-resolution assets only for final output.
  3. Simplify preview rendering templates:

    • Review the Image Rendering (IR) template used for preview generation.
    • Remove non-essential layers or image operations, such as sharpening or additional compositing, from the preview template to reduce processing time.
  4. Improve the experience during preview generation by displaying a clear message or loading indicator, such as Generating preview…, when a preview is initiated.

  5. If delays persist, analyze network and cache behavior:

    • Use browser developer tools to capture a HAR file during slow preview generation.
    • Review cache headers and status to determine whether the request is a cache miss for a first-time render or a cache hit for a subsequent request.
  6. After making the changes, test new, unique designs and monitor response times to verify that preview generation performance has improved.

recommendation-more-help
experience-cloud-kcs-help-kbarticles