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

declare(strict_types=1);

namespace 
InterventionImageModifiers;

use 
InterventionImageInterfacesImageInterface;
use 
InterventionImageInterfacesSizeInterface;

class 
PadModifier extends ContainModifier
{
    public function 
getCropSize(ImageInterface $image): SizeInterface
    
{
        return 
$image->size()
            ->
containMax(
                
$this->width,
                
$this->height
            
)
            ->
alignPivotTo(
                
$this->getResizeSize($image),
                
$this->position
            
);
    }
}
Онлайн: 0
Реклама