From 1acdff683205474372e7dc1e042365286cc28da5 Mon Sep 17 00:00:00 2001 From: kazik Date: Tue, 15 Mar 2016 10:25:46 +0100 Subject: [PATCH] Adding driver setting --- config/clyde.php | 10 ++++++++++ src/Http/Controllers/ClydeImageController.php | 1 + 2 files changed, 11 insertions(+) diff --git a/config/clyde.php b/config/clyde.php index 9bc0019..af2d65b 100644 --- a/config/clyde.php +++ b/config/clyde.php @@ -62,6 +62,16 @@ */ 'watermarks_path_prefix' => '/watermarks', + /* + |-------------------------------------------------------------------------- + | Driver + |-------------------------------------------------------------------------- + | + | Select a driver (gd or imagick). + | + */ + 'driver' => 'gd', + /* |-------------------------------------------------------------------------- | Max Image Size diff --git a/src/Http/Controllers/ClydeImageController.php b/src/Http/Controllers/ClydeImageController.php index 2b823d8..fe9a27b 100644 --- a/src/Http/Controllers/ClydeImageController.php +++ b/src/Http/Controllers/ClydeImageController.php @@ -51,6 +51,7 @@ public function show(Request $request, $filename) 'cache_path_prefix' => config('clyde.cache_path_prefix'), 'watermarks' => $this->files->disk(config('clyde.watermarks'))->getDriver(), 'watermarks_path_prefix' => config('clyde.watermarks_path_prefix'), + 'driver' => config('clyde.driver'), 'max_image_size' => config('clyde.max_image_size'), 'presets' => config('clyde.presets'), 'response' => new SymfonyResponseFactory()