trait ImaggaTrait

Trait ImaggaTrait

Methods

imaggaCrop(int|float|string|null $width = null, int|float|null $height = null)

Generates the best cropped version of the original image using the Imagga add-on.

imaggaScale(int|float|string|null $width = null, int|float|null $height = null)

Generates a smartly scaled image that perfectly fits the requested dimensions.

Details

static Imagga imaggaCrop(int|float|string|null $width = null, int|float|null $height = null)

Generates the best cropped version of the original image using the Imagga add-on.

If no dimensions specified, Imagga automatically defines the best crop resolution.

Parameters

Name Type Description
$width int|float|string|null The required width of a transformed asset.
$height int|float|null The required height of a transformed asset.

Return Value

Imagga

See also

https://cloudinary.com/documentation/imagga_crop_and_scale_addon

static Imagga imaggaScale(int|float|string|null $width = null, int|float|null $height = null)

Generates a smartly scaled image that perfectly fits the requested dimensions.

Parameters

Name Type Description
$width int|float|string|null The required width of a transformed asset.
$height int|float|null The required height of a transformed asset.

Return Value

Imagga

See also

https://cloudinary.com/documentation/imagga_crop_and_scale_addon