Файл: gapps/vendor/intervention/image/src/Intervention/Image/Gd/Commands/RotateCommand.php
Строк: 32
<?php
namespace InterventionImageGdCommands;
use InterventionImageGdColor;
class RotateCommand extends InterventionImageCommandsAbstractCommand
{
/**
* Rotates image counter clockwise
*
* @param InterventionImageImage $image
* @return boolean
*/
public function execute($image)
{
$angle = $this->argument(0)->type('numeric')->required()->value();
$color = $this->argument(1)->value();
$color = new Color($color);
// rotate image
$image->setCore(imagerotate($image->getCore(), $angle, $color->getInt()));
return true;
}
}