Enum StreamCdnResizeImageMode

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public enum StreamCdnResizeImageMode
    extends Enum<StreamCdnResizeImageMode>
                        

    Sets the resizing mode when added as the 'resize' query parameter to a Stream CDN hosted image URL. The default CDN resizing mode is CLIP.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CLIP

      Make the image as large as possible, while maintaining the aspect ratio and keeping the height and width less than or equal to the given height and width.

      CROP

      Crop the image to the given dimensions. Use StreamCdnCropImageMode to give focus to a specific portion of the image.

      FILL

      Make the image as large as possible, while maintaining the aspect ratio and keeping the height and width less than or equal to the given height and width. Fill any leftover space with a black background.

      SCALE

      Ignore the aspect ratio, and resize the image to the given height and width.