New in version 2.7.


Filter the HTML attributes used for an record’s image.

This filter affects <img> tags created by file_markup, files_for_item, record_image, item_image, and file_image (essentially meaning it covers anywhere derivative images are used for a record).


array $attrs
Array of HTML attributes for the <img> tag.


Omeka_Record record
The record being displayed (could be an Item or Collection in the case of a thumbnail)
File file
The file being displayed. This is always the File that directly corresponds with the image, while record can be another record like an Item, Collection or Exhibit that simply uses the File as its representative image.
string format
Type of derivative image being displayed (e.g., 'thumbnail', 'fullsize', 'square_thumbnail')