statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
31 stars 1 forks source link

Glide user defined default support #898

Closed SanderFlooris closed 1 year ago

SanderFlooris commented 1 year ago

I ran into the situation where I wanted to add compression by default, but it seems like there is currently no way to do this.

Inside src/Imaging/ImageGenerator.php where the defaults are loaded, you can see that a todo was placed here, but that has been there for quite a while.

Location of the TODO: https://github.com/statamic/cms/blob/e7f48d1e1063c82651b6e9ebe4feef8d3770df23/src/Imaging/ImageGenerator.php#L288