-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.php
95 lines (77 loc) · 2.6 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
declare(strict_types=1);
return [
/*
|--------------------------------------------------------------------------
| Default Glide Server
|--------------------------------------------------------------------------
|
| This option controls the default server that gets used while using this
| glide plugin. This configuration is used when another is not explicitly
| specified.
|
*/
'default' => 'main',
/*
|--------------------------------------------------------------------------
| Glide Configurations
|--------------------------------------------------------------------------
|
| Here you may define all of the glide "servers" for
| your application.
|
*/
'servers' => [
'main' => [
// Source filesystem
'source' => 'local',
// Source filesystem path prefix
'source_path_prefix' => '',
// Cache filesystem
'cache' => 'local',
// Cache filesystem path prefix
'cache_path_prefix' => '.cache',
// Watermarks filesystem
'watermarks' => 'local',
// Watermarks filesystem path prefix
'watermarks_path_prefix' => '',
// 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' => '/storage/app',
// Default image manipulations
// see http://glide.thephpleague.com/1.0/config/defaults-and-presets/
'defaults' => [
// Examples:
/*
'mark' => 'logo.png',
'markw' => '30w',
'markpad' => '5w',
*/
],
// Preset image manipulations
// see http://glide.thephpleague.com/1.0/config/defaults-and-presets/
'presets' => [
// Examples:
/*
'small' => [
'w' => 200,
'h' => 200,
'fit' => 'crop',
],
'medium' => [
'w' => 600,
'h' => 400,
'fit' => 'crop',
],
*/
],
],
],
];