Display images twice in a node with different image cache settings I have a node type where I'd like to display images as both thumbnails and full size images, so I'd like to use different image cache settings on the two image types. I don't want to use views to do this. I know that I can output a field twice using "print render($content['field_name']); " in my node.tpl file, however I wouldn't be able to manage the display separately on the two outputs.

Does anyone have a solution?
You can get the image path by using following code:

&lt;?php
var_dump($node);
?&gt;


Now find the path of the image and write the following code:

&lt;?php
theme('image_style', array('style_name' =&gt; 'stylename', 'path' =&gt; 'image path', 'alt' =&gt; 'image alt', 'title' =&gt; 'image title', 'width' =&gt; 'some width', 'height' =&gt; 'some height')));
?&gt;


Where you can define your own style name. I hope you know how to create image styles.
Just Goto admin/config/media/image-styles and add your style and use it in above code. Use above code twice to print images in two different style.

Entire code:

// filename relative to files directory
// e.g. 'masthead.jpg'
$filename = $node-&gt;field_image['und'][0]['filename'];

// relative path to raw image in 'scheme' format
// e.g. 'public://masthead.jpg'
$image_uri = file_build_uri($filename);

// relative path to 'styled' image (using an arbitrary 'banner' style) in 'scheme' format
// e.g. 'public://styles/banner/public/masthead.jpg'
image_style_path('banner', $filename);


// html for a styled image
// e.g. '&lt;img typeof="foaf:Image" src="http://mysite.com/sites/default/files/styles/banner/public/masthead.jpg" alt="" /&gt;'
print  theme('image_style', array('style_name' =&gt; 'banner', 'path' =&gt; $image_uri));