Merge branch 'trunk'
This commit is contained in:
commit
2f673054dc
3 changed files with 310 additions and 0 deletions
7
public/app/webp-express/config/.htaccess
Normal file
7
public/app/webp-express/config/.htaccess
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<IfModule mod_authz_core.c>
|
||||
Require all denied
|
||||
</IfModule>
|
||||
<IfModule !mod_authz_core.c>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</IfModule>
|
||||
166
public/app/webp-express/config/config.json
Normal file
166
public/app/webp-express/config/config.json
Normal file
|
|
@ -0,0 +1,166 @@
|
|||
{
|
||||
"operation-mode": "varied-image-responses",
|
||||
"image-types": 3,
|
||||
"destination-folder": "separate",
|
||||
"destination-extension": "append",
|
||||
"destination-structure": "image-roots",
|
||||
"cache-control": "no-header",
|
||||
"cache-control-custom": "public, max-age=31536000, stale-while-revalidate=604800, stale-if-error=604800",
|
||||
"cache-control-max-age": "one-week",
|
||||
"cache-control-public": false,
|
||||
"scope": [
|
||||
"themes",
|
||||
"uploads"
|
||||
],
|
||||
"enable-logging": false,
|
||||
"prevent-using-webps-larger-than-original": true,
|
||||
"enable-redirection-to-converter": true,
|
||||
"only-redirect-to-converter-on-cache-miss": false,
|
||||
"only-redirect-to-converter-for-webp-enabled-browsers": true,
|
||||
"do-not-pass-source-in-query-string": true,
|
||||
"redirect-to-existing-in-htaccess": true,
|
||||
"forward-query-string": true,
|
||||
"enable-redirection-to-webp-realizer": true,
|
||||
"jpeg-encoding": "auto",
|
||||
"jpeg-enable-near-lossless": true,
|
||||
"jpeg-near-lossless": 60,
|
||||
"quality-auto": true,
|
||||
"max-quality": 80,
|
||||
"quality-specific": 70,
|
||||
"png-encoding": "auto",
|
||||
"png-enable-near-lossless": true,
|
||||
"png-near-lossless": 60,
|
||||
"png-quality": 85,
|
||||
"alpha-quality": 80,
|
||||
"converters": [
|
||||
{
|
||||
"converter": "cwebp",
|
||||
"options": {
|
||||
"use-nice": true,
|
||||
"try-common-system-paths": true,
|
||||
"try-supplied-binary-for-os": true,
|
||||
"method": 6,
|
||||
"low-memory": true,
|
||||
"command-line-options": ""
|
||||
},
|
||||
"working": true
|
||||
},
|
||||
{
|
||||
"converter": "vips",
|
||||
"options": {
|
||||
"smart-subsample": false,
|
||||
"preset": "none"
|
||||
},
|
||||
"working": false
|
||||
},
|
||||
{
|
||||
"converter": "imagemagick",
|
||||
"options": {
|
||||
"use-nice": true
|
||||
},
|
||||
"working": false
|
||||
},
|
||||
{
|
||||
"converter": "graphicsmagick",
|
||||
"options": {
|
||||
"use-nice": true
|
||||
},
|
||||
"working": false
|
||||
},
|
||||
{
|
||||
"converter": "ffmpeg",
|
||||
"options": {
|
||||
"use-nice": true,
|
||||
"method": 4
|
||||
},
|
||||
"working": false
|
||||
},
|
||||
{
|
||||
"converter": "wpc",
|
||||
"working": false,
|
||||
"options": {
|
||||
"api-key": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"converter": "ewww",
|
||||
"working": false
|
||||
},
|
||||
{
|
||||
"converter": "imagick",
|
||||
"working": true
|
||||
},
|
||||
{
|
||||
"converter": "gmagick",
|
||||
"working": false
|
||||
},
|
||||
{
|
||||
"converter": "gd",
|
||||
"options": {
|
||||
"skip-pngs": false
|
||||
},
|
||||
"working": true
|
||||
}
|
||||
],
|
||||
"metadata": "none",
|
||||
"convert-on-upload": false,
|
||||
"fail": "original",
|
||||
"success-response": "converted",
|
||||
"alter-html": {
|
||||
"enabled": false,
|
||||
"only-for-webp-enabled-browsers": false,
|
||||
"alter-html-add-picturefill-js": true,
|
||||
"only-for-webps-that-exists": false,
|
||||
"replacement": "picture",
|
||||
"hooks": "ob",
|
||||
"hostname-aliases": []
|
||||
},
|
||||
"web-service": {
|
||||
"enabled": false,
|
||||
"whitelist": []
|
||||
},
|
||||
"environment-when-config-was-saved": {
|
||||
"doc-root-available": true,
|
||||
"doc-root-resolvable": true,
|
||||
"doc-root-usable-for-structuring": true,
|
||||
"image-roots": [
|
||||
{
|
||||
"id": "uploads",
|
||||
"rel-path": "app/uploads",
|
||||
"url": "https://www.ldc.fr/app/uploads"
|
||||
},
|
||||
{
|
||||
"id": "themes",
|
||||
"rel-path": "app/themes",
|
||||
"url": "https://www.ldc.fr/app/themes"
|
||||
},
|
||||
{
|
||||
"id": "plugins",
|
||||
"rel-path": "app/plugins",
|
||||
"url": "https://www.ldc.fr/app/plugins"
|
||||
},
|
||||
{
|
||||
"id": "wp-content",
|
||||
"rel-path": "app",
|
||||
"url": "https://www.ldc.fr/app"
|
||||
},
|
||||
{
|
||||
"id": "index",
|
||||
"rel-path": "wp",
|
||||
"url": "https://www.ldc.fr"
|
||||
}
|
||||
],
|
||||
"document-root": null
|
||||
},
|
||||
"base-htaccess-on-these-capability-tests": {
|
||||
"passThroughHeaderWorking": false,
|
||||
"passThroughEnvWorking": null,
|
||||
"modHeaderWorking": null,
|
||||
"canRunTestScriptInWOD": null,
|
||||
"canRunTestScriptInWOD2": null
|
||||
},
|
||||
"document-root": "/app/srcs/public",
|
||||
"paths-used-in-htaccess": {
|
||||
"wod-url-path": "app/mu-plugins/webp-express/wod/webp-on-demand.php"
|
||||
}
|
||||
}
|
||||
137
public/app/webp-express/config/wod-options.json
Normal file
137
public/app/webp-express/config/wod-options.json
Normal file
|
|
@ -0,0 +1,137 @@
|
|||
{
|
||||
"wod": {
|
||||
"enable-logging": false,
|
||||
"enable-redirection-to-converter": true,
|
||||
"enable-redirection-to-webp-realizer": true,
|
||||
"base-htaccess-on-these-capability-tests": {
|
||||
"passThroughHeaderWorking": false,
|
||||
"passThroughEnvWorking": null,
|
||||
"modHeaderWorking": null,
|
||||
"canRunTestScriptInWOD": null,
|
||||
"canRunTestScriptInWOD2": null
|
||||
},
|
||||
"destination-extension": "append",
|
||||
"destination-folder": "separate",
|
||||
"forward-query-string": true,
|
||||
"image-roots": [
|
||||
{
|
||||
"id": "uploads",
|
||||
"rel-path": "app/uploads",
|
||||
"url": "https://www.ldc.fr/app/uploads"
|
||||
},
|
||||
{
|
||||
"id": "themes",
|
||||
"rel-path": "app/themes",
|
||||
"url": "https://www.ldc.fr/app/themes"
|
||||
},
|
||||
{
|
||||
"id": "plugins",
|
||||
"rel-path": "app/plugins",
|
||||
"url": "https://www.ldc.fr/app/plugins"
|
||||
},
|
||||
{
|
||||
"id": "wp-content",
|
||||
"rel-path": "app",
|
||||
"url": "https://www.ldc.fr/app"
|
||||
},
|
||||
{
|
||||
"id": "index",
|
||||
"rel-path": "wp",
|
||||
"url": "https://www.ldc.fr"
|
||||
}
|
||||
],
|
||||
"success-response": "converted"
|
||||
},
|
||||
"webp-convert": {
|
||||
"serve-image": {
|
||||
"headers": {
|
||||
"cache-control": false,
|
||||
"content-length": true,
|
||||
"content-type": true,
|
||||
"expires": false,
|
||||
"last-modified": true
|
||||
}
|
||||
},
|
||||
"fail": "original",
|
||||
"convert": {
|
||||
"converters": [
|
||||
{
|
||||
"converter": "cwebp",
|
||||
"options": {
|
||||
"use-nice": true,
|
||||
"try-common-system-paths": true,
|
||||
"try-supplied-binary-for-os": true,
|
||||
"method": 6,
|
||||
"low-memory": true,
|
||||
"command-line-options": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"converter": "vips",
|
||||
"options": {
|
||||
"smart-subsample": false,
|
||||
"preset": "none"
|
||||
}
|
||||
},
|
||||
{
|
||||
"converter": "imagemagick",
|
||||
"options": {
|
||||
"use-nice": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"converter": "graphicsmagick",
|
||||
"options": {
|
||||
"use-nice": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"converter": "ffmpeg",
|
||||
"options": {
|
||||
"use-nice": true,
|
||||
"method": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"converter": "wpc",
|
||||
"options": {
|
||||
"api-key": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"converter": "ewww",
|
||||
"options": {
|
||||
"check-key-status-before-converting": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"converter": "imagick"
|
||||
},
|
||||
{
|
||||
"converter": "gmagick"
|
||||
},
|
||||
{
|
||||
"converter": "gd",
|
||||
"options": {
|
||||
"skip-pngs": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"jpeg": {
|
||||
"encoding": "auto",
|
||||
"quality": "auto",
|
||||
"default-quality": 70,
|
||||
"max-quality": 80,
|
||||
"near-lossless": 60
|
||||
},
|
||||
"png": {
|
||||
"encoding": "auto",
|
||||
"quality": 85,
|
||||
"near-lossless": 60,
|
||||
"alpha-quality": 80
|
||||
},
|
||||
"metadata": "none",
|
||||
"log-call-arguments": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue