StreamCdnMaxPixelsImageResizer
class StreamCdnMaxPixelsImageResizer(maxImagePixels: Long = StreamCdnImageResizer.DEFAULT_MAX_IMAGE_PIXELS, resizeMode: StreamCdnResizeImageMode? = null, cropMode: StreamCdnCropImageMode? = null, cdnHost: String? = null) : StreamCdnImageResizer
Caps images to maxImagePixels total pixels (default 2MP), preserving aspect ratio and never upscaling.
Parameters
maxImagePixels
The total-pixel budget (width × height). Must be positive.
resizeMode
The Stream CDN resize mode, or null for the CDN default.
cropMode
The Stream CDN crop mode, or null for the CDN default.
cdnHost
An optional custom Stream CDN host to resize in addition to the default Stream CDN hosts, for integrations serving Stream images from a proxied or custom domain. Mirrors iOS' StreamCDNRequester(cdnHost:).
Constructors
Link copied to clipboard
constructor(maxImagePixels: Long = StreamCdnImageResizer.DEFAULT_MAX_IMAGE_PIXELS, resizeMode: StreamCdnResizeImageMode? = null, cropMode: StreamCdnCropImageMode? = null, cdnHost: String? = null)