From 85271527e754ad247974966b8899c1c2a3226b07 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 12 Jul 2019 02:33:50 +0200 Subject: [PATCH] thumb: flatten transparent images to white background Ensure consistent background for some SVG and PNG originals. --- thumb/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/thumb/index.php b/thumb/index.php index 27a194e..f15a180 100644 --- a/thumb/index.php +++ b/thumb/index.php @@ -89,6 +89,7 @@ function mkthumb_exec($source, $target, $width, $height) $cmd = implode(' ', array_map('escapeshellarg', [ 'convert', '-trim', + '-background', 'white', '-layers', 'flatten', '-resize', "${width}x${height}", '-quality', '90%', $source, "jpg:$target" -- 2.30.0