I would like to decide on my own wether imagecache_create_url() returns an absolute or a relative URL, just as url() does.

I could imagine something like

function imagecache_create_url($presetname, $filepath, $bypass_browser_cache = FALSE)
to
function imagecache_create_url($presetname, $filepath, $bypass_browser_cache = FALSE, $absolute = TRUE)
...
$args = array('absolute' => $absolute, 'query' => empty($bypass_browser_cache) ? NULL : time());

thanks in advance!

(would provide patch iff necessary.)

Comments

omerida’s picture

bump. I'd like to be able to create urls without the protocol and domain name in the image src. I had a view which used imagecache - when I enabled caching for that view and used it on an HTTPS page (its also used on plain old HTTP), IE would give warnings because my images were being pulled from http://, since that is the output that was cached.

kndr’s picture

Status: Active » Closed (duplicate)