Hello!
I try to convert to AVIF format, but I don’t think it is working.
When I use IM driver images are not converted at all.
Apparently I should direct to the right bin to make it work. How do I know where that is?
Also the quality doesn’t seem to work with GB. Do I declare it wrong?
Thanks!
return [
'thumbs' => [
'driver' => 'im',
'srcsets' => [
'default' => [
'quality' => 50,
1, 300, 500, 1000, 2000
],
'avif' => [
'quality' => 2,
'1w' => ['width' => 1, 'format' => 'avif'],
'300w' => ['width' => 300, 'format' => 'avif'],
'500w' => ['width' => 500, 'format' => 'avif'],
'1000w' => ['width' => 1000, 'format' => 'avif'],
'2000w' => ['width' => 2000, 'format' => 'avif'],
],
'webp' => [
'quality' => 10,
'1w' => ['width' => 1, 'format' => 'webp'],
'300w' => ['width' => 300, 'format' => 'webp'],
'500w' => ['width' => 500, 'format' => 'webp'],
'1000w' => ['width' => 1000, 'format' => 'webp'],
'2000w' => ['width' => 2000, 'format' => 'webp'],
]
],
'presets' => [
'default' => ['width' => 2000, 'quality' => 30],
's' => ['width' => 600, 'quality' => 30],
'xs' => ['width' => 1, 'height' => 1, 'quality' => 30]
]
],