- IMG.LY Support Desk
- Technical FAQ
- Technical - PhotoEditor SDK
How do I set the maximum image dimensions in the PhotoEditor SDK Web?
The maxDimensions configuration parameter in the PhotoEditor SDK can be used to specify the maximum image dimensions. This parameter has sub-parameters for height and width, which both default to the height and width of the given image. You can limit the maximum image dimensions by specifying a value for height and width. For example, if you want to ensure that all images loaded into the SDK have a maximum width of 800 pixels and a maximum height of 600 pixels, you would set the height and width sub-parameters to these values.
For more information, please visit our documentation here.