In my templates I have images that use the thumb to reduce the quality and make the image file sizes smaller
<img src="<?= $page->file('xyz.jpg')->thumb(['quality' => 80])->url() ?>">
This generates smaller images in the Media folder with “-q80” added to the end of the file name.
But when I remove “[‘quality’ => 80]” from the templates and set the quality of thumbs in the config file the images are not modified. Same size images and file names.
Config file:
<?php
return [
'debug' => false,
'thumbs' => [
'quality' => 80,
],
];
Template
<img src="<?= $page->file('xyz.jpg')->thumb()->url() ?>">
How come this isn’t working?