Closed (duplicate)
Project:
ImageCache
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2009 at 18:32 UTC
Updated:
23 May 2010 at 21:22 UTC
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
Comment #1
omerida commentedbump. 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.
Comment #2
kndrLook at http://drupal.org/node/241541#comment-2945544