forked from LavaLite/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage.php
125 lines (113 loc) · 3.7 KB
/
image.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?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',
/*
|--------------------------------------------------------------------------
| Name of route
|--------------------------------------------------------------------------
|
| Enter the routes name to enable dynamic imagecache manipulation.
| This handle will define the first part of the URI:
|
| {route}/{template}/{filename}
|
| Examples: "images", "img/cache"
|
*/
'route' => 'image',
/*
|--------------------------------------------------------------------------
| Storage paths
|--------------------------------------------------------------------------
|
| The following paths will be searched for the image filename, submited
| by URI.
|
| Define as many directories as you like.
|
*/
'paths' => [
base_path(env('UPLOAD_FOLDER', 'storage/uploads')),
],
/*
|--------------------------------------------------------------------------
| Manipulation templates
|--------------------------------------------------------------------------
|
| Here you may specify your own manipulation filter templates.
| The keys of this array will define which templates
| are available in the URI:
|
| {route}/{template}/{filename}
|
| The values of this array will define which filter class
| will be applied, by its fully qualified name.
|
*/
'templates' => [
'xs' => 'Litepie\Filer\Templates\ExtraSmall',
'sm' => 'Litepie\Filer\Templates\Small',
'md' => 'Litepie\Filer\Templates\Medium',
'lg' => 'Litepie\Filer\Templates\Large',
'xl' => 'Litepie\Filer\Templates\ExtraLarge',
],
/*
|--------------------------------------------------------------------------
| Image Cache Lifetime
|--------------------------------------------------------------------------
|
| Lifetime in minutes of the images handled by the imagecache route.
|
*/
'lifetime' => 43200,
// Image size
'size' => [
'xs' => [
'width' => '80',
'height' => '60',
'action' => 'fit',
// 'default' => 'img/noimage.jpg',
// 'watermark' => public_path('assets/img/watermark.png'),
],
'sm' => [
'width' => '400',
'height' => '300',
'action' => 'fit',
//'default' => 'img/noimage.jpg',
//'watermark' => public_path('assets/img/watermark.png'),
],
'md' => [
'width' => '800',
'height' => '600',
'action' => 'fit',
//'default' => 'img/noimage.jpg',
//'watermark' => public_path('assets/img/watermark.png'),
],
'lg' => [
'width' => '1000',
'height' => '750',
'action' => 'fit',
//'default' => 'img/noimage.jpg',
//'watermark' => public_path('assets/img/watermark.png'),
],
'xl' => [
'width' => '2000',
'height' => '1500',
'action' => 'fit',
//'default' => 'img/noimage.jpg',
//'watermark' => public_path('assets/img/watermark.png'),
],
],
];