PHP function imagecropauto()
Availability in versions: PHP 5.5.0
Crop an image automatically using one of the available modes
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$image |
resource |
An image resource, returned by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}. | |
$mode |
int |
-1, | One of IMG_CROP_* constants. |
$threshold |
float |
.5, | Used IMG_CROP_THRESHOLD mode. |
$color |
int |
-1 |
Return values
resource
|bool Return cropped image resource on success or FALSE on failure.