How to apply image style in a views-view-fields--[view]--[machine-name].html.twig In a views-view-fields--[view]--[machine-name].html.twig, I have

{% set images = row._entity.field_image %}

{% for image  in images %}
  &lt;div&gt;
   &lt;div class="img"&gt;
     &lt;img class="img-responsive" src="{{ file_url(image.entity.fileuri) }}" alt=""&gt;
   &lt;/div&gt;
  &lt;/div&gt;
{% endfor %}


I have tried with "|image_style('style')" like so

src="{{ file_url(image.entity.fileuri)|image_style('style') }}

This doesn't work, so what am I doing wrong?
Welcome to Drupal Answers!

You can try something like below in your for loop:

{% set image = {
    '#theme':      'image_style',
    '#style_name': 'your_image_style_name',
    '#uri':        image.entity.uri,
    '#alt':        image.alt
   }
%}


then render the image as {{ image }} without img tag as it is rendered along with img tag.