Resolving Dynamic Media illegal image size and image size limit configuration errors

Dynamic Media returns an illegal image size error when requested image dimensions exceed the configured Reply Image Size Limit. This article explains how to identify the cause, validate the configured limits, and resolve the issue.

Description description

Environment

  • Adobe Experience Manager Dynamic Media
  • Dynamic Media Image Server (Scene7)
  • AEM Managed Services
  • AEM as a Cloud Service

Issue/Symptoms

  • Illegal image size error appears when loading image URLs.
  • Requests with larger dimensions fail while smaller requests load successfully.
  • Image presets fail when configured dimensions exceed allowed values.

Root cause

The Image Server enforces a Reply Image Size Limit that defines maximum width and height for returned images. Requests that exceed either dimension fail. The configuration varies per tenant but does not exceed the global maximum of 25 million pixels.

How to confirm

  • Identify a failing image URL that returns an error.
  • Check the requested width and height in the URL.
  • Compare them with configured limits.
  • Verify the issue reproduces consistently.

Resolution resolution

Follow these steps to resolve:

  1. Identify a failing Dynamic Media URL that returns an illegal image size error.
  2. Review the current Reply Image Size Limit configuration in Image Server settings.
  3. Increase the maximum width and height where required.
  4. Ensure the total pixel count remains within supported limits.
  5. Validate that requested dimensions fall within the updated limits.
  6. Re-test image URLs to confirm successful rendering.
  7. Adjust image presets to align with the configured limits.
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f