imagecropauto()
function imagecropauto(mixed $image, int $mode = IMG_CROP_DEFAULT, float $threshold = 0.5, int $color = -1): mixed
Crops an image automatically by the chosen mode.
Parameters:
$image(mixed)$mode(int), defaultIMG_CROP_DEFAULT, optional$threshold(float), default0.5, optional$color(int), default-1, optional
Returns: mixed
Availability
| Compiled (AOT) | Magician (eval) |
|---|---|
| Available | Not available yet |
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how imagecropauto is implemented in the compiler, see the internals page.