ImageTransform: {
    height?: ImageSizeTransform;
    keepAspectRatio?: boolean;
    width?: ImageSizeTransform;
}

Type declaration

  • Optional height?: ImageSizeTransform

    Set the transformed image's height. You can use specific size in pixels eg. 100px, a percentage eg. 50% or set as 'auto' to be set automatically.

    Default Value

    'auto'
    
  • Optional keepAspectRatio?: boolean

    Set if you want to keep the image's original aspect ratio. If explicitly set to false, the image will stretch based on the width and height values.

    Default Value

    true
    
  • Optional width?: ImageSizeTransform

    Set the transformed image's width. You can use specific size in pixels eg. 100px, a percentage eg. 50% or set as 'auto' to be set automatically.

    Default Value

    'auto'