cc-everywhere

Type Alias: ImageDimensions

type ImageDimensions = object;

Represents the dimensions of an image. It takes the size of the image in pixels along with the aspect ratio.

Properties

size?

optional size: PixelSize;

The size of the image in pixels. If provided, it should conform to the exact aspectRatio value within a tolerance of 0.05. Maximum width and height values are as follows:

aspectRatio

aspectRatio: AspectRatio | number;

The aspect ratio of the image. It can be either square, portrait, landscape, widescreen OR a number representing the aspect ratio value. If aspect ratio is provided as a number, it would be bucketed into one of the aspect ratios as below:

Below are the exact aspect ratio values for each type: