src/ImageStack/ImageBackend/HttpImageBackend.php
protected function getImageUrl(ImagePathInterface $path) {
	    $url = $path->getPath();
	    if ($this->getOption('use_prefix', false)) {
	        $url = rtrim($path->getPrefix(), '/') . '/' . $url;
	    }
	    if ($this->getOption('root_url')) {
	        $url = rtrim($this->getOption('root_url'), '/') . '/' . $url;
	    }
	    return filter_var($url, FILTER_SANITIZE_URL);
	}
protected function getImageUrl(ImagePathInterface $path) {
	    $url = $path->getPath();
	    if ($this->getOption('use_prefix', false)) {
	        $url = rtrim($path->getPrefix(), '/') . '/' . $url;
	    }
	    if ($this->getOption('root_url')) {
	        $url = rtrim($this->getOption('root_url'), '/') . '/' . $url;
	    }
	    return filter_var($url, FILTER_SANITIZE_URL);
	}
protected function getImageUrl ( ImagePathInterface $ path ) { $ url = $ path -> getPath ( ) ; if ( $ this -> getOption ( 'use_prefix' , false ) ) { $ url = rtrim ( $ path -> getPrefix ( ) , '/' ) . '/' . $ url ; } if ( $ this -> getOption ( 'root_url' ) ) { $ url = rtrim ( $ this -> getOption ( 'root_url' ) , '/' ) . '/' . $ url ; } return filter_var ( $ url , FILTER_SANITIZE_URL ) ; }
Get the image URL.
@param ImagePathInterface $path
@return string
Get the image URL .