From 2c4ab348002aa511155c5aaeb6cad19b5d6eca6e Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 30 Nov 2019 22:13:07 +0100 Subject: [PATCH] thumb: delete subsequent animation frames Convert animated GIFs and accidental video to still frame. --- thumb/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/thumb/index.php b/thumb/index.php index 4549b44..fbea220 100644 --- a/thumb/index.php +++ b/thumb/index.php @@ -87,6 +87,7 @@ function mkthumb_exec($source, $target, $width, $height) } $cmd = implode(' ', array_map('escapeshellarg', [ 'convert', + '-delete', '1--1', '-trim', '-background', 'white', '-layers', 'flatten', '-resize', "${width}x${height}", -- 2.30.0