getgrav / grav

Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony
https://getgrav.org
MIT License
14.57k stars 1.41k forks source link

External images meta files filters are not applied #581

Closed giansi closed 8 years ago

giansi commented 8 years ago

I try to add a metafile to apply some filters to an image as explained here http://learn.getgrav.org/content/media#metafiles but they are not applied. My image is named image1.jpg, so I added an image1.jpg.media.yaml under the same folder with this code inside:

image:
    filters:
          default:
              - [brightness, -30]

but filter is not applied.

rhukster commented 8 years ago

Thanks for the reminder. I'll look into this.

rhukster commented 8 years ago

Should work fine, but you need to name the file correctly. You have media.yaml and it should be meta.yaml

Image filename: sample-image.jpg Meta filename: sample-image.jpg.meta.yaml