Step 1: Install Intervention Image
If you have not installed the Laravel Intervention Image package do run the command below.
composer require intervention/image
Step 2: Publish Intervention Image Configuration
Now that you have it installed it's time to publish the configuration like below.
php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravelRecent"
Laravel Intervention Driver Option
The driver for Laravel Intervention can be updated as follows. Do note that the location for the configuration is in "config/image.php".
<?php return [ /* |-------------------------------------------------------------------------- | Image Driver |-------------------------------------------------------------------------- | | Intervention Image supports "GD Library" and "Imagick" to process images | internally. You may choose one of them according to your PHP | configuration. By default PHP's "GD Library" implementation is used. | | Supported: "gd", "imagick" | */ 'driver' => 'gd' ];
Leave a reply