How to edit image field output from template My goal is to edit the output of a specific field in a view.

There is an image field, and I would like to specify how it is output. So that instead of

&lt;img typeof="foaf:Image" src="https://url.com/sites/default/files/styles/com_home_news/public/field/image/myimage.jpg?itok=8e4_c1xI" width="290" height="140" alt=""&gt;


I can output something like

&lt;img src="imagepath/image.jpg"&gt;


I'd like to be able to edit the output freely and just have access to the image path for this specific view.

I am currently editing 

views-view-field--com-retheme-home-news--field-image.tpl.php


However I'm not sure how to actually access the path to the image. Using

&lt;?php print $output; ?&gt;


Only prints out what it would have before.

I understand that I could change the field itself to only present the path, however that isn't an option since there is already a lot of content taking advantage of how the field is already setup.
You need to install the Image URL Formatter module

Then in your view, click on your image field and select url as the formatter, so it prints the url rather than the image. 



Option A) In the rewrite results field, use the token for your image field. 

Example: &lt;img src="[field_image]" class="yay-we-did-it"&gt;  

Option B) if you want to use the .tpl.php file, put this inside it.

&lt;img src='&lt;?php print $fields["field_image"]-&gt;content; ?&gt;' class='yay-we-did-it'&gt;