From: Mischa POSLAWSKY Date: Sat, 18 Jan 2020 14:14:10 +0000 (+0100) Subject: thumb: prefer progressive jpeg encoding X-Git-Tag: v4.4~12 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/f6a56971c28026ca8f67783518b0ba6a39e1f8bc thumb: prefer progressive jpeg encoding Intermediate rendering for faster results, and overall smaller file sizes similar (if not identical) to jpegtran -optimize or PageSpeed. --- diff --git a/thumb/index.php b/thumb/index.php index fbea220..5291047 100644 --- a/thumb/index.php +++ b/thumb/index.php @@ -90,6 +90,7 @@ function mkthumb_exec($source, $target, $width, $height) '-delete', '1--1', '-trim', '-background', 'white', '-layers', 'flatten', + '-interlace', 'plane', # progressive '-resize', "${width}x${height}", '-quality', '90%', $source, "jpg:$target"