Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Find lowest value
min(mixed $valuemixed ...$values): mixed
            return $this;

        }



        
$alpha min($x$y);

        
$omega max($x$y);



        if (
$value $alpha || $value $omega) {
                    }



                    if (
$color->differs($checkColor$tolerance)) {

                        
$bottom_y min($height$y+$feather);

                        break 
2;

                    }
                    }



                    if (
$color->differs($checkColor$tolerance)) {

                        
$bottom_x min($width$x+$feather);

                        break 
2;

                    }
        }




        
$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));
        $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));