imagecropauto

Supported Versions: PHP 5 >= 5.5.0, PHP 7, PHP 8
Crop an image automatically using one of the available modes
<?php imagecropauto(    GdImage $image,    int $mode = IMG_CROP_DEFAULT,    float $threshold = 0.5,    int $color = -1): GdImage|false