DimensionsTrait
trait DimensionsTrait
Trait DimensionsTrait
Methods
size(string $size)
Sets the width and height of the asset.
aspectRatio(float|array|AspectRatio ...$aspectRatio)
Sets the aspect ratio of the asset.
Details
DimensionsTrait
width(int|string|Expression $width)
Sets the width of the asset.
DimensionsTrait
height(int|string|Expression $height)
Sets the height of the asset.
$this
size(string $size)
Sets the width and height of the asset.
DimensionsTrait
aspectRatio(float|array|AspectRatio ...$aspectRatio)
Sets the aspect ratio of the asset.