Engine Configuration Settings of PhotoEditor SDK
In this example, we will show you how to configure the PhotoEditor SDK.
The PE.SDK comes with a set of configuration parameters that let's you restrict the maximum dimensions of the loaded image.
Sets the global crossOrigin loading mode. Available are
Images whose sizes exceed these megapixel limits will be downscaled by the engine.
Specifies the maximum amount of megapixels per device type.
Limits the maximum megapixels on a desktop device.
Limits the maximum megapixels on a mobile device.
Specifies max height or width for the image.
Defaults to height of given image
Defaults to width of given image
Defines a color for the background of the image if the image contains transparency. Default color is black.