Skip to content

Smart Crop #1

@itcreator

Description

@itcreator

Just use this lib

https://github.com/stojg/crop

 /**
     * @param \Imagick $image
     * @param int $width
     * @param int $height
     */
    function smartCropImage(\Imagick $image, $width, $height)
    {
        $cropper = new CropEntropy($image);
        $croppedImage = $cropper->resizeAndCrop($width, $height);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions