Image style in views field template on image I'm struggling with a piece of code in my views field template. 

A short overview of the situation:


Node product has a field with filename for an image
Images are added with filezilla in default/files/products


What is the best way to implement image styles on these images.
My code:

&lt;?php
 print theme('image_style', array('style_name' =&gt; 'product_overzicht', 'path' =&gt; $img_url)); 
?&gt;


Where $img_url is just a simple variable, like: img_filename.jpg

This doesn't work because the folder of that image style is empty. I know the easy way is to use an image field on my product node but this can't be done here. I use a excel import for all products and the image filename is a column in that excel file. Images are all together in a folder.

Does anybody know a way do this or a good workaround. CSS markup is not good because the image size needs to be as low as possible in the view but on de node details page I would like to show the entire image.

Any tips or advice is welcome!
Try something like this :

&lt;img src="&lt;?php print image_style_url('product_overzicht', $img_url);?&gt;"&gt;


Where $img_url should be uri, which in your case can be : public://products/img_filename.jpg