How to find the image cache url for images I want to get the url to a specific image from image cache. I have the image file name (my_image.jpg), file path (site/default/files/my_image.jpg). From this value I want to get the url to a certain image cache folder (sites/default/files/imagecache/240x135/my_image.jpg). I cannot use any drupal methods/modules to get this because I am using external scripts to directly access the back-end database, from where I can get the image name, actual image path, but couldn't find the table where the url to image cache is stored.

How can I do this?
You can use the imagecache_create_url() function:

$path = imagecache_create_url($presetname, $filepath);



$presetname: String specifying an ImageCache preset name.
$filepath: String specifying the path to the image file.