thumb: prefer progressive jpeg encoding
[minimedit.git] / thumb / index.php
index 4549b44e6ab67385c52d6168da8b8b529ea16fe4..5291047fc5fd422d93df89387141539f1999e066 100644 (file)
@@ -87,8 +87,10 @@ function mkthumb_exec($source, $target, $width, $height)
        }
        $cmd = implode(' ', array_map('escapeshellarg', [
                'convert',
+               '-delete', '1--1',
                '-trim',
                '-background', 'white', '-layers', 'flatten',
+               '-interlace', 'plane', # progressive
                '-resize', "${width}x${height}",
                '-quality', '90%',
                $source, "jpg:$target"