min
Intervention/image
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Find lowest value
min
(
mixed $value
,
mixed
...
$values
):
mixed
return
$this
;
}
$alpha
=
min
(
$x
,
$y
);
$omega
=
max
(
$x
,
$y
);
if (
$value
<
$alpha
||
$value
>
$omega
) {
src/Intervention/Image/Commands/Argument.php
}
if (
$color
->
differs
(
$checkColor
,
$tolerance
)) {
$bottom_y
=
min
(
$height
,
$y
+
1
+
$feather
);
break
2
;
}
src/Intervention/Image/Gd/Commands/TrimCommand.php
}
if (
$color
->
differs
(
$checkColor
,
$tolerance
)) {
$bottom_x
=
min
(
$width
,
$x
+
1
+
$feather
);
break
2
;
}
src/Intervention/Image/Gd/Commands/TrimCommand.php
}
$crop_width
=
min
(
$width
, (
$crop_width
+
$feather
*
2
));
$crop_height
=
min
(
$height
, (
$crop_height
+
$feather
*
2
));
$crop_x
=
max
(
0
, (
$crop_x
-
$feather
));
$crop_y
=
max
(
0
, (
$crop_y
-
$feather
));
src/Intervention/Image/Imagick/Commands/TrimCommand.php
$crop_width
=
min
(
$width
, (
$crop_width
+
$feather
*
2
));
$crop_height
=
min
(
$height
, (
$crop_height
+
$feather
*
2
));
$crop_x
=
max
(
0
, (
$crop_x
-
$feather
));
$crop_y
=
max
(
0
, (
$crop_y
-
$feather
));
src/Intervention/Image/Imagick/Commands/TrimCommand.php