Illegal image size error in Dynamic Media | AEM

Description

Issue
When requesting an image url from the Dynamic Media host, an error is received:
“illegal image size”
Environment
AEM 6.1 with Dynamic Media
AEM 6.2 with Dynamic Media
Cause
The default maximum on the Dynamic Media SaaS environment is 2000,2000 pixels (maxpix)

Resolution

Navigate to http://host/crx/de/index.jsp#/etc/dam/imageserver/configuration/jcr%3Acontent/settings
Set maxpix property to the value in pixels you need, e.g. 4000,4000
Switch to the Replication tab and select the Replicate button
Re-test url and verify the image now returns

On this page