The downscaleOptions configuration parameter allows you to limit the number of megapixels that images loaded into the SDK can have. If an image exceeds these limits, the engine will downscale it to fit within the specified limits. For example, if you set the downscaleOptions parameter to a maximum of 5 megapixels, any image larger than that will be downscaled.
On the other hand, the maximum image dimensions can be set using the maxDimensions configuration parameter. With these parameters in place, you can have full control over the size of images loaded into the PhotoEditor SDK and ensure optimal performance and memory usage.
For more information, please visit our documentation here.