StreamCdnImageResizing

data class StreamCdnImageResizing(val imageResizingEnabled: Boolean, @FloatRange(from = 0.0, to = 1.0, fromInclusive = false) val resizedWidthPercentage: Float, @FloatRange(from = 0.0, to = 1.0, fromInclusive = false) val resizedHeightPercentage: Float, val resizeMode: StreamCdnResizeImageMode?, val cropMode: StreamCdnCropImageMode?)

Used to adjust the request to resize images hosted on Stream's CDN.

Note: This only affects images hosted on Stream's CDN which contain original width (ow) and height (oh) query parameters.

Parameters

imageResizingEnabled

Enables or disables image resizing.

resizedWidthPercentage

The percentage of the original image width the resized image width will be.

resizedHeightPercentage

The percentage of the original image height the resized image height will be.

resizeMode

Sets the image resizing mode. If null, the default mode used by the CDN is StreamCdnResizeImageMode.CLIP.

cropMode

Sets the image crop mode. If null, the default mode used by the CDN is StreamCdnCropImageMode.CENTER.

Constructors

Link copied to clipboard
constructor(imageResizingEnabled: Boolean, @FloatRange(from = 0.0, to = 1.0, fromInclusive = false) resizedWidthPercentage: Float, @FloatRange(from = 0.0, to = 1.0, fromInclusive = false) resizedHeightPercentage: Float, resizeMode: StreamCdnResizeImageMode?, cropMode: StreamCdnCropImageMode?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard