From: Mischa POSLAWSKY Date: Sat, 18 Jan 2020 14:57:10 +0000 (+0100) Subject: thumb: decrease preferred quality to 85% X-Git-Tag: v4.4~11 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/f0a869638caa32e6dc82f9a54bd8448015f8b638 thumb: decrease preferred quality to 85% Better trade-off, also recommended by PageSpeed. --- 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");