From: Mischa POSLAWSKY Date: Sat, 18 Jan 2020 14:57:10 +0000 (+0100) Subject: thumb: strip metadata and chroma X-Git-Tag: v4.4~10 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/ead5bed24e07383fbcf783c3b5c70a755dbc1982 thumb: strip metadata and chroma Decreased colour quality recommended by Google PageSpeed: --- diff --git a/thumb/index.php b/thumb/index.php index c65cab3..d296fbf 100644 --- a/thumb/index.php +++ b/thumb/index.php @@ -91,6 +91,8 @@ function mkthumb_exec($source, $target, $width, $height) '-trim', '-background', 'white', '-layers', 'flatten', # opaque '-interlace', 'plane', # progressive + '-strip', '-taint', # omit metadata + '-sampling-factor', '4:2:0', '-colorspace', 'sRGB', # half chroma '-resize', "${width}x${height}", '-quality', '85%', $source, "jpg:$target"