Print image field with multiple entries from field in twig template I have a twig template for a custom content type. And it is able to render most fields just fine, but I am unable to print an image field with multiple images.

node--mycontenttype.html.twig contains

{{ content.field_mytitle }}
{{ content.field_myheaderimage }}
&lt;div class="row expanded"&gt;
    {% for galleryimage in content.field_gallery_images %}
           &lt;div class="gallery-image-item"&gt; {{ galleryimage }} &lt;/div&gt;
    {% endfor %}
&lt;/div&gt;


content.field_mytitle and content._field_myheaderimage outputs the title and image just fine. But when I use the for loop

    {% for galleryimage in content.field_gallery_images %}
           &lt;div class="gallery-image-item"&gt; {{ galleryimage }} &lt;/div&gt;
    {% endfor %}


I receive an error

Exception: Object of type Drupal\node\Entity\Node cannot be printed. in Drupal\Core\Template\TwigExtension-&gt;escapeFilter() (line 443 of core/lib/Drupal/Core/Template/TwigExtension.php).


When I just use

{{ content.field_gallery_images }}


It's able to output each image, but this does not allow me to wrap each item in divs and add content to each one.
Print the image field in the node template like any other field:

{{ content.field_gallery_images }}


And then use a field twig to loop through multiple field items: 

field--field-gallery-images.html.twig

&lt;div class="row expanded"&gt;
  {% for item in items %}
    &lt;div class="gallery-image-item"&gt;{{ item.content }}&lt;/div&gt;
  {% endfor %}
&lt;/div&gt;