Просмотр файла vendor/intervention/image/src/Intervention/Image/Imagick/Commands/SharpenCommand.php

Размер файла: 440B
<?php

namespace Intervention\Image\Imagick\Commands;

class SharpenCommand extends \Intervention\Image\Commands\AbstractCommand
{
    /**
     * Sharpen image
     *
     * @param  \Intervention\Image\Image $image
     * @return boolean
     */
    public function execute($image)
    {
        $amount = $this->argument(0)->between(0, 100)->value(10);

        return $image->getCore()->unsharpMaskImage(1, 1, $amount / 6.25, 0);
    }
}