Class StreamCdnImageResizing

  • All Implemented Interfaces:

    
    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.