-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_config.php
80 lines (72 loc) · 1.89 KB
/
sample_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
<?php
/**
* Main filesystem from where we will take the original images.
*
* Possible values: AmazonS3 | local
*/
$config['filesystem'] = 'local';
// If we choose 'AmazonS3' as file system, we should fill the configuration params.
$config['AmazonS3']['bucket_name'] = 'bucket.name';
$config['AmazonS3']['access_key'] = 'key';
$config['AmazonS3']['secret_key'] = 'secret';
// If we choose local as filesystem, we should say the origin path
$config['local_files'] = realpath( dirname( __FILE__ ) ) . '/../dir_name/';
// Array with path conversions from original images location to final image locations.
// key = regular expression, value = replacement string
$config['path_conversions'] = array();
// Default images for 404.
// key = regular expression, value = default image to be used as original location.
$config['default_images'] = array();
/**
* Define which image sizes will you serve from your images server.
*
* The 'key' is the character you'll find in the end of the URL.
* Example: http://stc.domain.net/image_a.jpg
*/
$config['valid_image_sizes'] = array(
'a' => array(
'name' => 'avatar',
'height' => 40,
'width' => 40,
'crop' => true
),
'm' => array(
'name' => 'mini',
'height' => 60,
'width' => 60,
'crop' => true
),
't' => array(
'name' => 'thumbnail',
'height' => 100,
'width' => 100,
'crop' => true
),
'd' => array(
'name' => 'medium',
'height' => 150,
'width' => 150,
'crop' => true
),
'b' => array(
'name' => 'big',
'height' => 1204,
'width' => 1024,
'crop' => false
),
'f' => array(
'name' => 'full',
'height' => false,
'width' => false,
'crop' => false
),
);
/**
* Don't edit lines below.
*/
$config['valid_image_sizes_string'] = '';
foreach ( $config['valid_image_sizes'] as $image_size => $values )
{
$config['valid_image_sizes_string'] .= $image_size;
}
$config['valid_image_extensions'] = array( 'jpg', 'jpeg', 'gif', 'png' );