Customising image in the first row in a views I would like to be print for the first row in different display style for the image field.
Thx all!

&lt;div class="row first"&gt;
    &lt;h3&gt;Title1&lt;/h3&gt;
    &lt;img class="this is the first image with specific style of output"/&gt;
&lt;/div&gt;
&lt;div class="row"&gt;
    &lt;h3&gt;Title2&lt;/h3&gt;
    &lt;img class="standard style output"/&gt;
&lt;/div&gt;
&lt;div class="row"&gt;
    &lt;h3&gt;Title3&lt;/h3&gt;
    &lt;img class="standard style output"/&gt;
&lt;/div&gt;
&lt;div class="row last"&gt;
    &lt;h3&gt;Title4&lt;/h3&gt;
    &lt;img class="standard style output"/&gt;
&lt;/div&gt;


I tried using the php field.
Something like:

&lt;?php
  if ($view-&gt;row_index == 0) {
    print $row-&gt;field_foto_principale;
  } else {
    print "other";
  }
?&gt;


But I can not render the image.
you can also use hook

function HOOK_preprocess_views_view_fields(&amp;$vars) {
  if ($vars['view']-&gt;name == 'your_view_name' &amp;&amp; $vars['view']-&gt;row_index == 1) {
    // your code
  }
}