filestack/mixins/TransformationMixin.php
protected function insertTransformStr($url, $taskname, $process_attrs = [])
    {
        $transform_str = $this->getTransformStr($taskname, $process_attrs);

        // insert transform_url before file handle
        $url = substr($url, 0, strrpos($url, '/'));

        return "$url/$transform_str/" . $this->handle;
    }
protected function insertTransformStr($url, $taskname, $process_attrs = [])
    {
        $transform_str = $this->getTransformStr($taskname, $process_attrs);

        // insert transform_url before file handle
        $url = substr($url, 0, strrpos($url, '/'));

        return "$url/$transform_str/" . $this->handle;
    }
protected function insertTransformStr ( $ url , $ taskname , $ process_attrs = [ ] ) { $ transform_str = $ this -> getTransformStr ( $ taskname , $ process_attrs ) ; // insert transform_url before file handle $ url = substr ( $ url , 0 , strrpos ( $ url , '/' ) ) ; return "$url/$transform_str/" . $ this -> handle ; }
Insert a transformation task into existing url

@param string    $url            url to insert task into
@param string    $taskname       name of task, e.g. 'crop', 'resize', etc.
@param array     $process_attrs  attributes replated to this task

@throws Filestack\FilestackException

@return Transformation object
Insert a transformation task into existing url