Use url of media field in view twig I need to output the url for field_slide_media in views-view-unformatted--carousel.html.twig.
I can output the entity ID using:
{{ view.field.field_slide_media.value(view.result[i]) }}

I would like to use it in
&lt;img src=&quot;url of field_slide_media&quot;&gt;

I can also output the whole image, but I need to be able to add an img class to it in the twig, so it's too much being output. I need the uri not the whole output.
{{ view.style_plugin.getField(loop.index0, 'field_slide_media') }}

gives me:
&lt;img src=&quot;/sites/default/files/styles/carousel_large_image/public/2020-07/Mal%20Event%20Instagram%20Grid%202%20V2.png?itok=ZHLLokti&quot; alt=&quot;art&quot; typeof=&quot;foaf:Image&quot; &gt;
If you are configuring the view with the fields. You can try setting the formatter of the image to 'URL to image' and then create the HTML yourself like
&lt;img src=&quot;{{ view.field.field_slide_media }}&quot; /&gt;

Or you can try file_url