filestack/Filelink.php
public function rotate($background = 'white', $deg = 0, $exif = false)
    {
        $options = [
            'b' => $background,
            'd' => $deg,
            'e' => $exif ? 'true' : 'false'
        ];

        // call TransformationMixin function
        $this->setTransformUrl('rotate', $options);

        return $this;
    }
public function rotate($background = 'white', $deg = 0, $exif = false)
    {
        $options = [
            'b' => $background,
            'd' => $deg,
            'e' => $exif ? 'true' : 'false'
        ];

        // call TransformationMixin function
        $this->setTransformUrl('rotate', $options);

        return $this;
    }
public function rotate ( $ background = 'white' , $ deg = 0 , $ exif = false ) { $ options = [ 'b' => $ background , 'd' => $ deg , 'e' => $ exif ? 'true' : 'false' ] ; // call TransformationMixin function $ this -> setTransformUrl ( 'rotate' , $ options ) ; return $ this ; }
Set this Filelink's transform_url to include the rotate task

@param string    $background     Sets the background color to display behind
the image. This can be the word for a color,
or the hex color code, e.g. ('red' or 'FF0000')
@param int       $deg            The degree by which to rotate the image
clockwise (0 to 359). Alternatively, you can
set the degree to 'exif' and the image will
be rotated based upon any exif metadata it
may contain.
@param bool      $exif           Sets the EXIF orientation of the image to
EXIF orientation 1. The exif=false parameter
takes an image and sets the exif orientation
to the first of the eight EXIF orientations.
The image will behave as though it is contained
in an html img tag if displayed in application
that supports EXIF orientations.

@throws FilestackException   if API call fails, e.g 404 file not found

@return Filestack/Filelink
Set this Filelink s transform_url to include the rotate task