You are here

How to get image url with applied style

$image_uri      = $node->field_image['und'][0]['uri']; // or any public://my_image
$style          = 'my_style';
$derivative_uri = image_style_path($style, $image_uri);
$success        = file_exists($derivative_uri) || image_style_create_derivative(image_style_load($style), $image_uri, $derivative_uri);
$new_image_url  = file_create_url($derivative_uri);
code type: