How to insert html tag "id" in an image field in a view I need to add id tag to an image which is a field of a view. Currently it seems only possible to add a class name.

&lt;img typeof="foaf:Image" ... must become => &lt;img id="xxx" typeof="foaf:Image" ...
Searching for typeof="foaf:image" I found that was set by rdf module preprocess_image, not in views. Therefore I added a preprocess function

function MYTHEME_preprocess_image(&amp;variables){
  // compute first MY_UNIQUE_ID
  $variables['attributes']['id'] = array('MY_UNIQUE_ID');
}


now it works.