Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Image Metafile -> Default Filter?

Started by Edelita 8 years ago · 0 replies · 424 views
8 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 Thomas, 1 week ago
3 92 2 hours ago
Support · by Anna, 3 days ago
2 94 23 hours ago
Support · by Justin Young, 24 hours ago
1 62 24 hours ago
Support · by Duc , 1 week ago
2 98 6 days ago
Support · by Colin Hume, 1 week ago
2 91 6 days ago