contao/image

Add a prefix argument to Image::getUrl()

ausi opened this issue · 0 comments

ausi commented

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'