← All docs

imagecropauto()

Implemented by the compiler-injected image prelude.

imagecropauto()

function imagecropauto(mixed $image, int $mode = IMG_CROP_DEFAULT, float $threshold = 0.5, int $color = -1): mixed

Implemented by the compiler-injected image prelude.

Parameters:

  • $image (mixed)
  • $mode (int), default IMG_CROP_DEFAULT, optional
  • $threshold (float), default 0.5, optional
  • $color (int), default -1, optional

Returns: mixed

Availability

  • Compiled (AOT): supported through the compiler-injected image prelude.
  • eval() (magician interpreter): not available inside eval’d code.

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how imagecropauto is implemented in the compiler, see the internals page.