Package 

Class StreamCdnImageResizing


  • @Deprecated(message = Configure image resizing via a StreamCdnImageResizer — the default StreamCdnMaxPixelsImageResizer caps images to 2MP, or provide your own StreamCdnImageResizer. This percentage-based config is only honored while enabled and will be removed in the next major version.) 
    public final class StreamCdnImageResizing
    
                        

    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.

    • Constructor Detail

      • StreamCdnImageResizing

        StreamCdnImageResizing(Boolean imageResizingEnabled, Float resizedWidthPercentage, Float resizedHeightPercentage, StreamCdnResizeImageMode resizeMode, StreamCdnCropImageMode cropMode)
        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.
        cropMode - Sets the image crop mode.