Вход Регистрация
Файл: vendor/intervention/image/src/Drivers/Gd/Modifiers/BlurModifier.php
Строк: 32
<?php

declare(strict_types=1);

namespace 
InterventionImageDriversGdModifiers;

use 
InterventionImageInterfacesImageInterface;
use 
InterventionImageInterfacesSpecializedInterface;
use 
InterventionImageModifiersBlurModifier as GenericBlurModifier;

class 
BlurModifier extends GenericBlurModifier implements SpecializedInterface
{
    
/**
     * {@inheritdoc}
     *
     * @see ModifierInterface::apply()
     */
    
public function apply(ImageInterface $image): ImageInterface
    
{
        foreach (
$image as $frame) {
            for (
$i 0$i $this->amount$i++) {
                
imagefilter($frame->native(), IMG_FILTER_GAUSSIAN_BLUR);
            }
        }

        return 
$image;
    }
}
Онлайн: 2
Реклама