-
@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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classStreamCdnImageResizing.Companion
-
Field Summary
Fields Modifier and Type Field Description private final BooleanimageResizingEnabledprivate final FloatresizedWidthPercentageprivate final FloatresizedHeightPercentageprivate final StreamCdnResizeImageModeresizeModeprivate final StreamCdnCropImageModecropMode
-
Constructor Summary
Constructors Constructor Description StreamCdnImageResizing(Boolean imageResizingEnabled, Float resizedWidthPercentage, Float resizedHeightPercentage, StreamCdnResizeImageMode resizeMode, StreamCdnCropImageMode cropMode)
-
Method Summary
Modifier and Type Method Description final BooleangetImageResizingEnabled()final FloatgetResizedWidthPercentage()final FloatgetResizedHeightPercentage()final StreamCdnResizeImageModegetResizeMode()final StreamCdnCropImageModegetCropMode()-
-
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.
-
-
Method Detail
-
getImageResizingEnabled
final Boolean getImageResizingEnabled()
-
getResizedWidthPercentage
final Float getResizedWidthPercentage()
-
getResizedHeightPercentage
final Float getResizedHeightPercentage()
-
getResizeMode
final StreamCdnResizeImageMode getResizeMode()
-
getCropMode
final StreamCdnCropImageMode getCropMode()
-
-
-
-