image icon indicating copy to clipboard operation
image copied to clipboard

Configure driver by passing its id string

Open olivervogel opened this issue 1 year ago • 0 comments

Describe the feature you'd like

Currently you have to pass the driver by its full classname or by an object to the ImageManager::class.

$manager = new ImageManager(new Driver());
$manager = new ImageManager(Driver::class);

In version 2, a string (either gd or imagick) had to be passed to the ImageManager. This could be made possible again using the respective driver ID.

$manager = new ImageManager('gd');

Is your feature request related to a problem? Please describe.

When migrating from version 2, there might still be old configuration values like gd or imagick which then result in errors. See #1413

olivervogel avatar Jan 08 '25 14:01 olivervogel