From f0a869638caa32e6dc82f9a54bd8448015f8b638 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 18 Jan 2020 15:57:10 +0100 Subject: [PATCH] thumb: decrease preferred quality to 85% Better trade-off, also recommended by PageSpeed. --- thumb/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thumb/index.php b/thumb/index.php index 5291047..c65cab3 100644 --- a/thumb/index.php +++ b/thumb/index.php @@ -87,12 +87,12 @@ function mkthumb_exec($source, $target, $width, $height) } $cmd = implode(' ', array_map('escapeshellarg', [ 'convert', - '-delete', '1--1', + '-delete', '1--1', # static '-trim', - '-background', 'white', '-layers', 'flatten', + '-background', 'white', '-layers', 'flatten', # opaque '-interlace', 'plane', # progressive '-resize', "${width}x${height}", - '-quality', '90%', + '-quality', '85%', $source, "jpg:$target" ])); $return = shell_exec("$cmd 2>&1"); -- 2.30.0