Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration KnownImageScaleMode

Package version

Known values of ImageScaleMode that the service accepts.

Index

Enumeration members

Enumeration members

Pad

Pad: = "pad"

Pads the image with black horizontal stripes (letterbox) or black vertical stripes (pillar-box) so the image is resized to the specified dimensions while not altering the content aspect ratio.

PreserveAspectRatio

PreserveAspectRatio: = "preserveAspectRatio"

Preserves the same aspect ratio as the input image. If only one image dimension is provided, the second dimension is calculated based on the input image aspect ratio. When 2 dimensions are provided, the image is resized to fit the most constraining dimension, considering the input image size and aspect ratio.

Stretch

Stretch: = "stretch"

Stretches the original image so it resized to the specified dimensions.

Generated using TypeDoc