public function stringify($server, $secret, $original, $commands)
    {
        if (count($commands) > 0) {
            $commandPath = implode('/', $commands);
            $imgPath = sprintf('%s/%s', $commandPath, $original);
        } else {
            $imgPath = $original;
        }

        $signature = $secret ? self::sign($imgPath, $secret) : 'unsafe';

        return sprintf(
            '%s/%s/%s',
            $server,
            $signature,
            $imgPath
        );
    }
public function stringify($server, $secret, $original, $commands)
    {
        if (count($commands) > 0) {
            $commandPath = implode('/', $commands);
            $imgPath = sprintf('%s/%s', $commandPath, $original);
        } else {
            $imgPath = $original;
        }

        $signature = $secret ? self::sign($imgPath, $secret) : 'unsafe';

        return sprintf(
            '%s/%s/%s',
            $server,
            $signature,
            $imgPath
        );
    }
public function stringify ( $ server , $ secret , $ original , $ commands ) { if ( count ( $ commands ) > 0 ) { $ commandPath = implode ( '/' , $ commands ) ; $ imgPath = sprintf ( '%s/%s' , $ commandPath , $ original ) ; } else { $ imgPath = $ original ; } $ signature = $ secret ? self :: sign ( $ imgPath , $ secret ) : 'unsafe' ; return sprintf ( '%s/%s/%s' , $ server , $ signature , $ imgPath ) ; }
Produce a URL to an image on a Thumbor server according to the specified
options.

See https://github.com/globocom/thumbor/wiki/Usage for available $commands.

@param string $server   Thumbor server
@param string $secret   shared secret key (may be blank/null)
@param string $original URL of original image
@param array  $commands array of Thumbor commands
Produce a URL to an image on a Thumbor server according to the specified options .