-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
247 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
# Source filesystem | ||
# can be the name of a disk in the filesystem | ||
# or the name of a driver supported by the filesystem | ||
'source' => 'images', | ||
|
||
# Source filesystem path prefix | ||
'source_path_prefix' => '/', | ||
|
||
# Cache filesystem | ||
# can be the name of a disk in the filesystem | ||
# or the name of a driver supported by the filesystem | ||
'cache' => 'images', | ||
|
||
# Cache filesystem path prefix | ||
'cache_path_prefix' => '/cache', | ||
|
||
# Watermarks filesystem | ||
# can be the name of a disk in the filesystem | ||
# or the name of a driver supported by the filesystem | ||
'watermarks' => 'images', | ||
|
||
# Watermarks filesystem path prefix | ||
'watermarks_path_prefix' => '/watermarks', | ||
|
||
# Image driver (gd or imagick) | ||
'driver' => env('GLIDE_IMAGE_DRIVER', 'gd'), | ||
|
||
# Image size limit | ||
'max_image_size' => 2000*2000, | ||
|
||
# Secure your Glide image server with HTTP signatures | ||
'signatures' => true, | ||
|
||
# Sign Key - A 128 character (or larger) signing key is recommended | ||
'sign_key' => env('GLIDE_SIGN_KEY'), | ||
|
||
# Base URL of the images | ||
'base_url' => '/image', | ||
|
||
# Default image manipulations | ||
# see https://glide.thephpleague.com/2.0/config/defaults-and-presets/ | ||
'defaults' => [ | ||
'mark' => 'logo.png', | ||
'markw' => '30w', | ||
'markpad' => '5w', | ||
], | ||
|
||
# Preset image manipulations | ||
# see https://glide.thephpleague.com/2.0/config/defaults-and-presets/ | ||
'presets' => [ | ||
'small' => [ | ||
'w' => 200, | ||
'h' => 200, | ||
'fit' => 'crop', | ||
], | ||
'medium' => [ | ||
'w' => 600, | ||
'h' => 400, | ||
'fit' => 'fill', | ||
], | ||
'large' => [ | ||
'w' => 1200, | ||
'h' => 800, | ||
'fit' => 'contain', | ||
], | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
return [ | ||
'source' => 'avatars', | ||
|
||
'source_path_prefix' => '/', | ||
|
||
'cache' => 'avatars', | ||
|
||
'cache_path_prefix' => '/cache', | ||
|
||
'driver' => env('GLIDE_IMAGE_DRIVER', 'gd'), | ||
|
||
'max_image_size' => 600*600, | ||
|
||
'signatures' => true, | ||
|
||
'sign_key' => env('GLIDE_SIGN_KEY'), | ||
|
||
'base_url' => '/users/avatar', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.