mirror of
https://github.com/Intervention/image.git
synced 2025-08-11 16:34:00 +02:00
sharpen amount is now optional
This commit is contained in:
@@ -12,7 +12,7 @@ class SharpenCommand extends \Intervention\Image\Commands\AbstractCommand
|
|||||||
*/
|
*/
|
||||||
public function execute($image)
|
public function execute($image)
|
||||||
{
|
{
|
||||||
$amount = $this->argument(0)->between(0, 100)->required()->value();
|
$amount = $this->argument(0)->between(0, 100)->value(30);
|
||||||
|
|
||||||
// build matrix
|
// build matrix
|
||||||
$min = $amount >= 10 ? $amount * -0.01 : 0;
|
$min = $amount >= 10 ? $amount * -0.01 : 0;
|
||||||
|
@@ -12,7 +12,7 @@ class SharpenCommand extends \Intervention\Image\Commands\AbstractCommand
|
|||||||
*/
|
*/
|
||||||
public function execute($image)
|
public function execute($image)
|
||||||
{
|
{
|
||||||
$amount = $this->argument(0)->between(0, 100)->required()->value();
|
$amount = $this->argument(0)->between(0, 100)->value(30);
|
||||||
|
|
||||||
return $image->getCore()->unsharpMaskImage(1, 1, $amount / 6.25, 0);
|
return $image->getCore()->unsharpMaskImage(1, 1, $amount / 6.25, 0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user