system.resizer.getDefaultOptions

Provides an opportunity to modify the default options used when generating image resize requests

Example usage:

Event::listen('system.resizer.getDefaultOptions', function ((array) &$defaultOptions)) { $defaultOptions['background'] = '#f2f2f2'; });

Usage

Triggers

Class or file Line
System\Classes\ImageResizer 130
Copyright © 2024 Winter CMS