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 · 423 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
2 54 12 hours ago
Support · by Anna, 3 days ago
2 60 15 hours ago
Support · by Justin Young, 15 hours ago
1 30 15 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 57 5 days ago