Файл: vendor/intervention/image/src/Drivers/Imagick/Modifiers/ContainDownModifier.php
Строк: 36
<?php
declare(strict_types=1);
namespace InterventionImageDriversImagickModifiers;
use InterventionImageInterfacesImageInterface;
use InterventionImageInterfacesSizeInterface;
class ContainDownModifier extends ContainModifier
{
/**
* Calculate crop size of the contain down resizing process.
*/
protected function cropSize(ImageInterface $image): SizeInterface
{
return $image->size()
->containDown(
$this->width,
$this->height,
)
->alignPivotTo(
$this->resizeSize($image),
$this->alignment,
);
}
}