public
|
execute(Image $img, $margin, int $rgb_threshold, int $pixel_cutoff, int $base_color): Image
Executes the auto-crop operation on the $img
Executes the auto-crop operation on the $img
Parameters
$rgb_threshold |
The difference in RGB from $base_color
|
$pixel_cutoff |
The number of pixels on each border that must be over $rgb_threshold
|
$base_color |
The color that will get cropped
|
Returns
resulting auto-cropped image
|
#
|