Cancel Lossless encoding for WebP for now

The avatars do not show the difference, but the volume of files increases significantly.
This commit is contained in:
Visman 2023-03-29 10:27:10 +07:00
parent 4f24442850
commit af1e339fda

View file

@ -70,12 +70,12 @@ class GDDriver extends DefaultDriver
break;
case 'jpg':
$type = 'jpeg';
$args[] = $quality;
break;
// $args[] = $quality;
// break;
case 'webp':
if (defined('\\IMG_WEBP_LOSSLESS')) {
$quality = \IMG_WEBP_LOSSLESS; // кодирование без потери качества
}
// if (defined('\\IMG_WEBP_LOSSLESS')) {
// $quality = \IMG_WEBP_LOSSLESS; // кодирование без потери качества
// }
case 'avif':
$args[] = $quality;
break;