Вход Регистрация
Файл: system/vendor/intervention/image/src/Intervention/Image/Gd/Commands/BlurCommand.php
Строк: 28
<?php

namespace InterventionImageGdCommands;

use 
InterventionImageCommandsAbstractCommand;

class 
BlurCommand extends AbstractCommand
{
    
/**
     * Applies blur effect on image
     *
     * @param  InterventionImageImage $image
     * @return boolean
     */
    
public function execute($image)
    {
        
$amount $this->argument(0)->between(0100)->value(1);

        for (
$i=0$i intval($amount); $i++) {
            
imagefilter($image->getCore(), IMG_FILTER_GAUSSIAN_BLUR);
        }

        return 
true;
    }
}
Онлайн: 0
Реклама