/** * @param $angle * @return $this */ public function rotate($angle) { $this->preModify(); $this->resource->rotateImage(new \ImagickPixel('none'), $angle); $this->setWidth($this->resource->getimagewidth()); $this->setHeight($this->resource->getimageheight()); $this->postModify(); $this->setIsAlphaPossible(true); return $this; }