Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Image Metafile -> Default Filter?

Started by Edelita 9 years ago · 0 replies · 542 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 blu3prince, 4 days ago
1 68 4 hours ago
Support · by complanar, 7 days ago
6 157 2 days ago
Support · by Rick Beebe, 7 days ago
2 116 3 days ago
Support · by alex, 5 days ago
2 101 4 days ago
Support · by Marcel, 2 weeks ago
1 152 4 days ago