Make webp default format for images

This commit is contained in:
DariusIII
2026-07-16 15:57:20 +02:00
parent 17be0e11d2
commit b27fb8d86b
60 changed files with 1154 additions and 1136 deletions
+19
View File
@@ -17,4 +17,23 @@ return [
'default' => env('IMAGE_DRIVER', 'imagick'),
/*
|--------------------------------------------------------------------------
| Stored Image Processing
|--------------------------------------------------------------------------
|
| These limits apply to covers, previews, and image samples. Destination
| directories remain owned by their callers; this configuration controls
| only decoding, remote fetching, and the encoded output.
|
*/
'output_format' => env('IMAGE_OUTPUT_FORMAT', 'webp'),
'output_quality' => (int) env('IMAGE_OUTPUT_QUALITY', 82),
'max_source_bytes' => (int) env('IMAGE_MAX_SOURCE_BYTES', 20 * 1024 * 1024),
'max_source_pixels' => (int) env('IMAGE_MAX_SOURCE_PIXELS', 40_000_000),
'fetch_connect_timeout' => (int) env('IMAGE_FETCH_CONNECT_TIMEOUT', 5),
'fetch_timeout' => (int) env('IMAGE_FETCH_TIMEOUT', 30),
'fetch_max_redirects' => (int) env('IMAGE_FETCH_MAX_REDIRECTS', 5),
];