private function applyEffects($image, $effects)
    {
        foreach ($effects as $effect => $value) {
            $effect = mb_strtolower($effect);

            if (isset(ImagerService::$effects[$effect])) {
                /** @var ImagerEffectsInterface $effectClass */
                $effectClass = ImagerService::$effects[$effect];
                $effectClass::apply($image, $value);
            }
        }
    }
private function applyEffects($image, $effects)
    {
        foreach ($effects as $effect => $value) {
            $effect = mb_strtolower($effect);

            if (isset(ImagerService::$effects[$effect])) {
                /** @var ImagerEffectsInterface $effectClass */
                $effectClass = ImagerService::$effects[$effect];
                $effectClass::apply($image, $value);
            }
        }
    }
private function applyEffects ( $ image , $ effects ) { foreach ( $ effects as $ effect => $ value ) { $ effect = mb_strtolower ( $ effect ) ; if ( isset ( ImagerService :: $ effects [ $ effect ] ) ) { /** @var ImagerEffectsInterface $effectClass */ $ effectClass = ImagerService :: $ effects [ $ effect ] ; $ effectClass :: apply ( $ image , $ value ) ; } } }
Applies effects to image.

@param GdImage|ImagickImage $image
@param array                $effects
Applies effects to image .