I would like to display images from various sections, in this case the home page. I am still coming to terms with Twig/Craft's criteria models and the transform makes it confusing.
{% for image in craft.entries.section('news').limit(1) %}
{% set transformedImage = craft.imager.transformImage(image, { width: 1420, height: 550, position: image.focalPoint }) %}
<img src="{{ image.bannerImage.first().getUrl }}" alt="" />
{% endfor %}`
Where do you then define the image? (bannerImage
is a asset field)