Twig Templating with Ease
Ansel uses a pattern familiar to anyone who uses Craft. The “Criteria Model”. Ansel’s Image Criteria Model behaves like Craft’s Entry Criteria Model in every meaningful way. This means you can create loops through your site’s images, get the first, the last, the count, and practically anything else you can think of doing.
Ansel and Assets
Ansel saves its images using Craft’s native Assets. And when you work with Ansel images in Twig, everything that’s available to you through an Asset in a Twig template is available to Ansel Images as well.