Dompdf\Image\Cache::resolve_url
Resolve and fetch an image for use.
Signature
public function resolve_url(string
$url,
string
$protocol,
string
$host,
string
$base_path,
Dompdf
$dompdf )
Parameters
$url
—
string
- The url of the image
$protocol
—
string
- Default protocol if none specified in $url
$host
—
string
- Default host if none specified in $url
$base_path
—
string
- Default path if none specified in $url
$dompdf
—
Dompdf\Dompdf
- The Dompdf instance
Returns
- array
- An array with two elements: The local path to the image and the image extension
Errors/Exceptions
-
ImageException