optimize image
This commit is contained in:
parent
53a2ed8b0f
commit
fc51258d40
3 changed files with 13 additions and 12 deletions
|
|
@ -13,14 +13,15 @@ return [
|
|||
'format' => 'webp'
|
||||
],
|
||||
'srcsets' => [
|
||||
'default' => [
|
||||
['width' => 200, 'format' => 'webp'],
|
||||
['width' => 400, 'format' => 'webp'],
|
||||
['width' => 600, 'format' => 'webp'],
|
||||
['width' => 800, 'format' => 'webp'],
|
||||
['width' => 1024, 'format' => 'webp'],
|
||||
['width' => 1440, 'format' => 'webp'],
|
||||
['width' => 2048, 'format' => 'webp']
|
||||
'default' => [200, 400, 600, 800, 1024, 1440, 2048],
|
||||
'webp' => [
|
||||
'200w' => ['width' => 200 * 1.5, 'format' => 'webp'],
|
||||
'400w' => ['width' => 400 * 1.5, 'format' => 'webp'],
|
||||
'600w' => ['width' => 600 * 1.5, 'format' => 'webp'],
|
||||
'800w' => ['width' => 800 * 1.5, 'format' => 'webp'],
|
||||
'1024w' => ['width' => 1024 * 1.5, 'format' => 'webp'],
|
||||
'1440w' => ['width' => 1440 * 1.5, 'format' => 'webp'],
|
||||
'2048w' => ['width' => 2048 * 1.5, 'format' => 'webp']
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue