Файл: vendor/intervention/image/src/Drivers/Imagick/Modifiers/RotateModifier.php
Строк: 36
<?php
declare(strict_types=1);
namespace InterventionImageDriversImagickModifiers;
use InterventionImageInterfacesImageInterface;
use InterventionImageInterfacesSpecializedInterface;
use InterventionImageModifiersRotateModifier as GenericRotateModifier;
class RotateModifier extends GenericRotateModifier implements SpecializedInterface
{
public function apply(ImageInterface $image): ImageInterface
{
$background = $this->driver()->colorProcessor($image->colorspace())->colorToNative(
$this->driver()->handleInput($this->background)
);
foreach ($image as $frame) {
$frame->native()->rotateImage(
$background,
$this->rotationAngle() * -1
);
}
return $image;
}
}