Skip to content

Commit

Permalink
Adding driver setting
Browse files Browse the repository at this point in the history
  • Loading branch information
antennaio committed Mar 15, 2016
1 parent b6019a1 commit 1acdff6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/clyde.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@
*/
'watermarks_path_prefix' => '/watermarks',

/*
|--------------------------------------------------------------------------
| Driver
|--------------------------------------------------------------------------
|
| Select a driver (gd or imagick).
|
*/
'driver' => 'gd',

/*
|--------------------------------------------------------------------------
| Max Image Size
Expand Down
1 change: 1 addition & 0 deletions src/Http/Controllers/ClydeImageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1acdff6

Please sign in to comment.