contao / image

Contao Image Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a prefix argument to Image::getUrl()

ausi opened this issue · comments

To be used like:

$image = new Image('/path/to/root/foo/bar.jpg', ...);
$image->getUrl('/path/to/root', 'https://cdn.example.com/images/');
// 'https://cdn.example.com/images/foo/bar.jpg'