src/ImboClient/Http/ImageUrl.php
public function rotate($angle, $bg = '000000') {
        if (!$angle) {
            throw new InvalidArgumentException('angle must be specified');
        }

        return $this->addTransformation(sprintf('rotate:angle=%d,bg=%s', (int) $angle, $bg));
    }
public function rotate($angle, $bg = '000000') {
        if (!$angle) {
            throw new InvalidArgumentException('angle must be specified');
        }

        return $this->addTransformation(sprintf('rotate:angle=%d,bg=%s', (int) $angle, $bg));
    }
public function rotate ( $ angle , $ bg = '000000' ) { if ( ! $ angle ) { throw new InvalidArgumentException ( 'angle must be specified' ) ; } return $ this -> addTransformation ( sprintf ( 'rotate:angle=%d,bg=%s' , ( int ) $ angle , $ bg ) ) ; }
Add a rotate transformation

@param float $angle The angle to rotate
@param string $bg Background color of the rotated image
@return self
@throws InvalidArgumentException
Add a rotate transformation