forked from nosilver4u/ewwwio-silo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sample.php
137 lines (103 loc) · 6.48 KB
/
config.sample.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
126
127
128
129
130
131
132
133
134
135
136
137
<?php
// While 4 years of development have worked out just about every conceivable problem, make sure you have a good backup in place before proceeding. No amount of development can ensure bug-free code or avoid user errors in use/configuration. Sorry, just the way us humans are built!
global $ewwwio_settings;
$ewwwio_settings = array(
// Uncomment (remove the slashes) to activate any of these settings and override those saved by the web interface
// API Key will be validated when you save your settings. Purchase an API key at https://ewww.io/plans/ (not required, but conserves resources and achieves must higher compression ratios)
//'ewww_image_optimizer_cloud_key' => '',
//Use this to provide information for support purposes, or if you feel comfortable digging around in the code to fix a problem you are experiencing.
//'ewww_image_optimizer_debug' => false,
// TODO: make sure to update all mention of the setting elsewhere (formerly jpegtran_copy)
// This will remove ALL metadata: EXIF and comments.
//'ewww_image_optimizer_remove_meta' => true,
// Valid JPG optimization levels:
// 0 = off
// 10 = lossless
// 20 = maximum lossless (requires API key)
// 30 = lossy (requires API key)
// 40 = maximum lossy (requires API key)
//'ewww_image_optimizer_jpg_level' => 10,
// Valid PNG optimization levels:
// 0 = off
// 10 = lossless
// 20 = better lossless (uses API)
// 30 = maximum lossless (uses API + advpng)
// 40 = lossy (can run locally, but will use API if key is entered)
// 50 = maximum lossy (requires API key)
//'ewww_image_optimizer_png_level' => 10,
// Valid GIF levels:
// 0 = off
// 10 = lossless
//'ewww_image_optimizer_gif_level' => 10,
// Valid PDF levels (API key required):
// 0 = off
// 10 = lossless
// 20 = lossy
//'ewww_image_optimizer_pdf_level' => 0,
// Choose how long to pause between images (in seconds)
//'ewww_image_optimizer_delay' => 0,
// 1 is fastest compression, maximum is 7, but levels 4 and above are unlikely to yield any additional savings
//'ewww_image_optimizer_optipng_level' => 2,
// download and install from http://advsys.net/ken/utils.htm or use one-click install from web config
//'ewww_image_optimizer_disable_pngout' => true,
// 3 is fastest compression, highest compression is 0
//'ewww_image_optimizer_pngout_level' => 2,
// Use full paths, not relative paths, uncomment any of the examples below or add your own folders. Be sure to enclose with single quotes, and finish with a comma (,) or you'll get a syntax error.
//'ewww_image_optimizer_aux_paths' => array(
// '/var/www/',
// '/home/username/public_html/',
//),
// ensure images are no wider than this (in pixels) TODO: not yet implemented
//'ewww_image_optimizer_maxmediawidth' => 0,
// ensure images are no taller than this (in pixels) TODO: not yet implemented
//'ewww_image_optimizer_maxmediaheight' => 0,
// skip images smaller than this (in bytes)
//'ewww_image_optimizer_skip_size' => 0,
// skip PNG images larger than this (in bytes)
//'ewww_image_optimizer_skip_png_size' => 0,
// If you have already installed the utilities in a system location, such as /usr/local/bin or /usr/bin, use this to force the plugin to use those versions and skip the auto-installers.
//'ewww_image_optimizer_skip_bundle' => false,
// only applies to converting images, originals are not preserved for regular optimization
//'ewww_image_optimizer_delete_originals' => false,
// Removes metadata and increases cpu usage dramatically. PNG is generally much better than JPG for logos and other images with a limited range of colors. Checking this option will slow down JPG processing significantly, and you may want to enable it only temporarily.
//'ewww_image_optimizer_jpg_to_png' => false,
// This is not a lossless conversion. JPG is generally much better than PNG for photographic use because it compresses the image and discards data. PNGs with transparency are not converted by default.
//'ewww_image_optimizer_png_to_jpg' => false,
// Set a background color in hexadecimal notation (without the #) to be used when converting PNGs with transparency (which does not happen if the background color is NOT set)
// //'ewww_image_optimizer_jpg_background' => 'ffffff',
// What quality level should we attempt with PNG to JPG conversion and/or JPG resizing (recommended to use something between 50 and 90)
//'ewww_image_optimizer_jpg_quality' => 82,
// PNG is generally better than GIF, but animated images will not be converted.
//'ewww_image_optimizer_gif_to_png' => false,
// JPG to WebP conversion is lossy, but quality loss is minimal. PNG to WebP conversion is lossless. This setting enables conversion for both formats. Originals are never deleted, and WebP images should only be served to supported browsers.
//'ewww_image_optimizer_webp' => false,
// not sure - don't bother setting these, they are not used currently
//'ewww_image_optimizer_enable_cloudinary', 'boolval' ); // TODO: integrate libraries to upload automatically to Amazon S3, Cloudinary, DreamObjects, Azure, etc.
//'ewww_image_optimizer_maxotherwidth', 'intval' );
//'ewww_image_optimizer_maxotherheight', 'intval' );
// not used
//'ewww_image_optimizer_resize_existing', 'boolval' );
//'ewww_image_optimizer_lossy_skip_full' =>
//'ewww_image_optimizer_metadata_skip_full', 'boolval' );
//'ewww_image_optimizer_disable_resizes', 'ewww_image_optimizer_disable_resizes_sanitize' );
//'ewww_image_optimizer_disable_resizes_opt', 'ewww_image_optimizer_disable_resizes_sanitize' );
//'ewww_image_optimizer_disable_convert_links', 'boolval' );
//'ewww_image_optimizer_parallel_optimization', 'boolval' );
//'ewww_image_optimizer_include_media_paths', 'boolval' );
//'ewww_image_optimizer_webp_for_cdn', 'boolval' );
);
// By default, SILO uses sqlite for tracking image status. This may not be suitable in cases where overlapping processes need write access to the database. Uncomment (remove the leading slashes) and configure the settings below to enable MySQL support.
// You will need to manually create an empty database, but SILO will create all the tables when it is first run.
/** MySQL database name */
//define('DB_NAME', 'ewww_silo');
/** MySQL database username */
//define('DB_USER', '');
/** MySQL database password */
//define('DB_PASSWORD', '');
/** MySQL hostname */
//define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
//define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
//define('DB_COLLATE', '');
?>