Filter: Get the thumbnail of the image

How to get the thumbnail of the image in Anqi CMS template?

thumbThe filter can obtain a thumbnail of the image based on the image address.

Usage

thumbHow to use the filter:

{{ image|thumb }}

For example, to obtain the thumbnail of a banner image, it can be written like this:

{% bannerList banners %}
    {% for item in banners %}
    <a href="{{item.Link}}" target="_blank">
        <img src="{{item.Logo}}" alt="{{item.Alt}}" />
        <div class="thumb">
          {{ item.Logo|thumb }}
        </div>
    </a>
    {% endfor %}
{% endbannerList %}