Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Image Metafile -> Default Filter?

Started by Edelita 9 years ago · 0 replies · 657 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 TomW, 2 weeks ago
8 227 9 hours ago
Support · by alex, 2 months ago
8 667 23 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 5 days ago