We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Crop Giving Blank Image

Imagick crop function produce blank image.

Imagick Object is as follows:-

Phalcon\Image\Adapter\Imagick Object
(
    [_image:protected] => Imagick Object
        (
        )

    [_file:protected] => /var/www/html/project/public/../apps/../public/uploads/folder/org.png
    [_realpath:protected] => /var/www/html/project/public/uploads/folder/org.png
    [_width:protected] => 676
    [_height:protected] => 380
    [_type:protected] => 6
    [_mime:protected] => image/PNG
)

And Parameters for crop are as follows:-

$imagickObject->crop( 233,220,0,0 )

I even use different value for 3rd and 4th parameter