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

declare(strict_types=1);

namespace 
InterventionImageDriversImagickModifiers;

use 
InterventionImageExceptionsColorException;
use 
InterventionImageInterfacesImageInterface;
use 
InterventionImageInterfacesSpecializedInterface;
use 
InterventionImageModifiersProfileRemovalModifier as GenericProfileRemovalModifier;

class 
ProfileRemovalModifier extends GenericProfileRemovalModifier implements SpecializedInterface
{
    public function 
apply(ImageInterface $image): ImageInterface
    
{
        
$imagick $image->core()->native();
        
$result $imagick->profileImage('icc'null);

        if (
$result === false) {
            throw new 
ColorException('ICC color profile could not be removed.');
        }

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