File indexing completed on 2025-01-26 05:29:14

0001 <?php
0002 
0003 namespace Intervention\Image\Imagick\Commands;
0004 
0005 class BlurCommand extends \Intervention\Image\Commands\AbstractCommand
0006 {
0007     /**
0008      * Applies blur effect on image
0009      *
0010      * @param  \Intervention\Image\Image $image
0011      * @return boolean
0012      */
0013     public function execute($image)
0014     {
0015         $amount = $this->argument(0)->between(0, 100)->value(1);
0016 
0017         return $image->getCore()->blurImage(1 * $amount, 0.5 * $amount);
0018     }
0019 }