D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
www
/
vendor
/
intervention
/
image
/
src
/
Intervention
/
Image
/
Gd
/
Commands
/
Filename :
RotateCommand.php
back
Copy
<?php namespace Intervention\Image\Gd\Commands; use Intervention\Image\Gd\Color; class RotateCommand extends \Intervention\Image\Commands\AbstractCommand { /** * Rotates image counter clockwise * * @param \Intervention\Image\Image $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; } }