src/Modules/Imager/GDDriver.php
public function rotate($angle, $bg_color = '#FFF', $bg_opacity = 0)
    {
        $rotated = imagerotate($this->image_handler, $angle, $this->getColor($bg_color, $bg_opacity));
        imagealphablending($rotated, false);
        $this->setImage($rotated, imagesx($rotated), imagesy($rotated));

        return $this;
    }
public function rotate($angle, $bg_color = '#FFF', $bg_opacity = 0)
    {
        $rotated = imagerotate($this->image_handler, $angle, $this->getColor($bg_color, $bg_opacity));
        imagealphablending($rotated, false);
        $this->setImage($rotated, imagesx($rotated), imagesy($rotated));

        return $this;
    }
@param integer $angle
@param string $bg_color
@param integer $bg_opacity

@return $this