get file path of image style as replacement patterns in views i need something like 

&lt;img attribute1='value' src='sites/default/files/styles/thumbnails/**pic_0**.jpg'&gt;


in views.

i have to use rewrite result because i need attribute1. but i have no idea how to get src of image.
[filename] is not always same with file path. -for example [filename] is pic.jpg but file path is pic_0.jpg- .

and [uri] give me http://example.com/sites/default/files/pic_0.jpg  not http://example.com/sites/default/files/styles/thumbnails/pic_0.jpg.

how can i get pic_0.jpg or http://example.com/sites/default/files/styles/thumbnails/pic_0.jpg?
You can get file path of image style in view.tpl

Example:

/**
 * field with image: "field_image"
 * uri:  (image from field_image) File: Path
 */

$style_name = $view-&gt;field['field_image']-&gt;options['settings']['image_style'];
$thumb_path = image_style_url($style_name, $uri);


I didn't wrote how to get $uri because it depends on type of template file. The general idea is to get a file path of image style by using image_style_url($style_name, $uri) in view.tpl file.