Add a class to a image for a specific view
If your view is outputting fields (&amp; not a teaser) you can easily do it in the views UI.


Edit your view
Click on the image field
STYLE SETTINGS > Customize field HTML > Create a CSS class
Save


Now your image field should have a class: