Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Image Metafile -> Default Filter?

Started by Edelita 9 years ago · 0 replies · 579 views
9 years ago

Hi! I was checking out the Metafiles documentation for media, and am curious about the following lines in the .yaml file:

YAML
filters:
    default:
        - [cropResize, 200, 200]

How could I use this in Twig so that when the image is displayed, this filter is always applied?

I am successfully pulling other data I have in this metafile, I'm just not sure if I'm supposed to be expecting this default filter to be applied automatically.

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 6 days ago
4 143 5 days ago
Support · by nwhitfield, 1 week ago
2 122 1 week ago
Support · by stell, 2 weeks ago
5 363 2 weeks ago
Support · by gravinator, 1 month ago
5 554 2 weeks ago
Support · by Gravver, 3 weeks ago
6 344 3 weeks ago