|
| execute ($img, $margin, $rgb_threshold, $pixel_cutoff, $base_color) |
|
◆ execute()
execute |
( |
|
$img, |
|
|
|
$margin, |
|
|
|
$rgb_threshold, |
|
|
|
$pixel_cutoff, |
|
|
|
$base_color |
|
) |
| |
Executes the auto-crop operation on the $img
- Parameters
-
\WideImage\Image | $img | |
int | $rgb_threshold | The difference in RGB from $base_color |
int | $pixel_cutoff | The number of pixels on each border that must be over $rgb_threshold |
int | $base_color | The color that will get cropped |
- Returns
- \WideImage\Image resulting auto-cropped image
The documentation for this class was generated from the following file:
- C:/xoops2511b2/htdocs/class/libraries/vendor/smottt/wideimage/lib/WideImage/Operation/AutoCrop.php