/** * Rotates the image resource in the given degrees. * * @param float $degrees Degrees to rotate the image. Negative values will rotate the image * anti-clockwise. * @param string $background Background to fill the empty spaces. Will render as black for jpg * format (use png for transparency). * * @return $this */ public function rotate($degrees, $background = 'transparent') { $this->resource->rotate($degrees, $background); return $this; }